You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, im trying to move off windowsautopilotintune ps modules to graph, i used Get-AutopilotDevice to retrieve assigned deploymentpofile of a device in intune, which still works fine.. im trying to get the same information using Get-MgDeviceManagementWindowsAutopilotDeviceIdentity but the field I need is empty (DeploymentProfileAssignmentStatus):
Permissions on the api im using:
Device.ReadWrite.All
DeviceManagementApps.ReadWrite.All
DeviceManagementConfiguration.ReadWrite.All
DeviceManagementManagedDevices.Read.All
DeviceManagementManagedDevices.ReadWrite.All
DeviceManagementServiceConfig.Read.All
DeviceManagementServiceConfig.ReadWrite.All
Directory.Read.All
EntitlementManagement.ReadWrite.All
User.Read
Maybe im missing permissions (?) or im using the wrong cmdlet ? Anyone have any info on how to retrieve profile assignment status using MgGraph modules ?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello, im trying to move off windowsautopilotintune ps modules to graph, i used Get-AutopilotDevice to retrieve assigned deploymentpofile of a device in intune, which still works fine.. im trying to get the same information using Get-MgDeviceManagementWindowsAutopilotDeviceIdentity but the field I need is empty (DeploymentProfileAssignmentStatus):
Device info from Get-MgBetaDeviceManagementWindowsAutopilotDeviceIdentity:
AddressableUserName : AzureActiveDirectoryDeviceId : 8ad60f43-7ba8-498e-a691-6163dcf5a0d3 AzureAdDeviceId : 8ad60f43-7ba8-498e-a691-6163dcf5a0d3 DeploymentProfile : Microsoft.Graph.Beta.PowerShell.Models.MicrosoftGraphWindowsAutopilotDeploymentProfile DeploymentProfileAssignedDateTime : 2/13/2025 12:44:21 PM DeploymentProfileAssignmentDetailedStatus : none DeploymentProfileAssignmentStatus : unknown DeviceAccountPassword : DeviceAccountUpn : DeviceFriendlyName : DisplayName : EnrollmentState : notContacted GroupTag : test-device-vm Id : 4515ac8e-d510-4a9b-913d-7b08d2eae191 IntendedDeploymentProfile : Microsoft.Graph.Beta.PowerShell.Models.MicrosoftGraphWindowsAutopilotDeploymentProfile LastContactedDateTime : 1/1/0001 12:00:00 AM ManagedDeviceId : 00000000-0000-0000-0000-000000000000 Manufacturer : Microsoft Corporation Model : Virtual Machine ProductKey : 6f02b900-31d6-4fa4-900b-dc86cafc818e PurchaseOrderIdentifier : RemediationState : noRemediationRequired RemediationStateLastModifiedDateTime : 2/13/2025 12:40:49 PM ResourceName : SerialNumber : 5802-5754-3443-0271-8942-9559-22 SkuNumber : None SystemFamily : Virtual Machine UserPrincipalName : UserlessEnrollmentStatus : unknown AdditionalProperties : {[@odata.context, https://graph.microsoft.com/beta/$metadata#deviceManagement/windowsAutopilotDeviceIdentities/$entity]}
Permissions on the api im using:
Device.ReadWrite.All
DeviceManagementApps.ReadWrite.All
DeviceManagementConfiguration.ReadWrite.All
DeviceManagementManagedDevices.Read.All
DeviceManagementManagedDevices.ReadWrite.All
DeviceManagementServiceConfig.Read.All
DeviceManagementServiceConfig.ReadWrite.All
Directory.Read.All
EntitlementManagement.ReadWrite.All
User.Read
Maybe im missing permissions (?) or im using the wrong cmdlet ? Anyone have any info on how to retrieve profile assignment status using MgGraph modules ?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions