microsoft / Intune-PowerShell-SDK

Native PowerShell support for invoking Microsoft Intune Graph API to enable IT Pro scenario automation.
MIT License
314 stars 77 forks source link

get-devicemanagement_manageddevices no-longer returns device objects #93

Open JLambEJG opened 3 years ago

JLambEJG commented 3 years ago

I don't know when this started happening. I just know that recently, get-devicemanagement_manageddevices returned device objects. Now, it is returning four properties, with all the data crammed into the "value" property.

Where this used to work, just days ago: $AllManagedDevices = get-devicemanagement_manageddevices | Where-Object {($_.azureADRegistered -eq $true) -and ($_.operatingsystem -eq "ios")}

Now, I need to do this: $AllManagedDevices = (get-devicemanagement_manageddevices).value | Where-Object {($_.azureADRegistered -eq $true) -and ($_.operatingsystem -eq "ios")}

Is this expected behavior, and I'm just nuts (willing to accept that).

Thank you

0byt3 commented 3 years ago

Reported in a previous issue here: https://github.com/microsoft/Intune-PowerShell-SDK/issues/78

A workaround has been found in that thread.