Skip to content

Request-GraphDevice

SYNOPSIS

Requests Entra and Intune devices from Microsoft Graph. Builds combined device objects and caches them.

Combined objects expose a flat set of convenience properties (DisplayName, DeviceId, OwnerUPN, etc.) plus an .Entra property (raw Graph device object) and an .Intune property (raw Intune managed-device object, or $null when the device is not enrolled / the tenant does not use Intune).

Devices that appear only in Intune (no matching Entra record) are included with .Entra = $null.

SYNTAX

Request-GraphDevice [-Cached] [-Test] [[-Xml] <Boolean>] [[-Return] <String>]
 [-ProgressAction <ActionPreference>] [<CommonParameters>]

DESCRIPTION

{{ Fill in the Description }}

EXAMPLES

Example 1

PS C:\> {{ Add example code here }}

{{ Add example description here }}

PARAMETERS

-Cached

{{ Fill Cached Description }}

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-Test

{{ Fill Test Description }}

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-Xml

{{ Fill Xml Description }}

Type: Boolean
Parameter Sets: (All)
Aliases:

Required: False
Position: 1
Default value: $Global:IRT_Config.ExportXml
Accept pipeline input: False
Accept wildcard characters: False

-Return

{{ Fill Return Description }}

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 2
Default value: Objects
Accept pipeline input: False
Accept wildcard characters: False

-ProgressAction

{{ Fill ProgressAction Description }}

Type: ActionPreference
Parameter Sets: (All)
Aliases: proga

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

NOTES

Version: 2.0.0