Forum Discussion
How can I get the Operating System Build Number for an Android device in Intune
Hello all,
I am trying to pull information about an Android devices Operating System Build Number from Intune using PowerShell, however - the closest information I can find is the Operating System Version.
I've been successful in connecting to Microsoft Graph via PowerShell, and I'm certain I have permissions to access all the device information.
However, I cannot find information about how to pull the data I'm looking for. Google suggested that I need to include 'hardwareInformation' as an ExtendProperty of Get-MgManagedDeviceManagedDevices but I receive an error stating:
"Parsing OData Select and Expand failed: Could not find a property named 'hardwareInformation' on type 'microsoft.graph.managedDevice'"
Can someone please help me find how to select the Operating System Build Number from Intune or MgGraph? I've included an image of the exact data I'm looking for as it shows up in Intune
1 Reply
- GriJBrass Contributor
Hi,
try this PS Script - worked for me:Connect-MgGraph -Scopes "DeviceManagementManagedDevices.Read.All"
Select-MgProfile -Name "beta"
$deviceId = "<your-device-id>"
$device = Get-MgDeviceManagementManagedDevice -ManagedDeviceId $deviceId -Property "hardwareInformation"
$device.HardwareInformation
Should retrun OSSystemBuild, BIOS Version, Model etc.For queriying Multiple Devices you have to build a loop
Also Get-IntuneManagedDevice cmdlet from the Intune PowerShell SDK may work.
BR