SOLVED

Byod Device information Via Powershell

%3CLINGO-SUB%20id%3D%22lingo-sub-2760482%22%20slang%3D%22en-US%22%3EByod%20Device%20information%20Via%20Powershell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2760482%22%20slang%3D%22en-US%22%3E%3CP%3EHello%2C%3C%2FP%3E%3CP%3EWe%20need%20to%20try%20and%20pull%20Device%20Model%20for%20our%20BYOD%20(registered%20devices).%3C%2FP%3E%3CP%3EIt%20does%20not%20look%20like%20it%20is%20an%20Available%20property%20using%26nbsp%3BGet-AzureADUserRegisteredDevice.%20Does%20anyone%20know%20how%20to%20Gather%20this%20info.%20We%20want%20to%20know%20how%20many%20of%20our%20BYOD%20devices%20can%20no%20longer%20Upgrade%20their%20OS%20on%20iOS%20and%20Android%20phones.%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3CP%3EOur%20Risks%20folks%20want%20to%20the%20information%20for%20Vulnerability%20Processes.%26nbsp%3B%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2760482%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAzure%20Friday%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2762241%22%20slang%3D%22en-US%22%3ERe%3A%20Byod%20Device%20information%20Via%20Powershell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2762241%22%20slang%3D%22en-US%22%3EThe%20Azure%20AD%20PowerShell%20cmdlets%20may%20not%20be%20the%20best%20option%20here%2C%20device%20model%20details%20aren%E2%80%99t%20returned.%20Have%20a%20look%20at%20the%20Microsoft%20Graph%20PowerShell%20module%20and%20it%E2%80%99s%20Get-MgDevice%20cmdlet.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2767628%22%20slang%3D%22en-US%22%3ERe%3A%20Byod%20Device%20information%20Via%20Powershell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2767628%22%20slang%3D%22en-US%22%3EThanks%2C%20I%20will.%20Need%20to%20see%20what%20I%20can%20with%20Graph%2C%20for%20registered%20devices%20without%20enrollment.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2768258%22%20slang%3D%22en-US%22%3ERe%3A%20Byod%20Device%20information%20Via%20Powershell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2768258%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F367742%22%20target%3D%22_blank%22%3E%40Coopem16%3C%2FA%3E%26nbsp%3B%3A%3C%2FP%3E%3CP%3EWith%20the%20follow%20Graph%20provider%20you%20get%20the%20information%20you%20need%3A%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fgraph.microsoft.com%2Fv1.0%2FdeviceManagement%2FmanagedDevices%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgraph.microsoft.com%2Fv1.0%2FdeviceManagement%2FmanagedDevices%2F%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHere%20you%20can%20find%20a%20script%20from%20which%20you%20can%20get%20the%20PS%20function%3A%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fmicrosoftgraph%2Fpowershell-intune-samples%2Fblob%2Fmaster%2FManagedDevices%2FManagedDevices_Get.ps1%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Epowershell-intune-samples%2FManagedDevices_Get.ps1%20at%20master%20%C2%B7%20microsoftgraph%2Fpowershell-intune-samples%20(github.com)%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

Hello,

We need to try and pull Device Model for our BYOD (registered devices).

It does not look like it is an Available property using Get-AzureADUserRegisteredDevice. Does anyone know how to Gather this info. We want to know how many of our BYOD devices can no longer Upgrade their OS on iOS and Android phones. 

Our Risks folks want to the information for Vulnerability Processes.  

5 Replies
The Azure AD PowerShell cmdlets may not be the best option here, device model details aren’t returned. Have a look at the Microsoft Graph PowerShell module and it’s Get-MgDevice cmdlet.
Thanks, I will. Need to see what I can with Graph, for registered devices without enrollment.

@Coopem16 :

With the follow Graph provider you get the information you need:

https://graph.microsoft.com/v1.0/deviceManagement/managedDevices/

 

Here you can find a script from which you can get the PS function:

powershell-intune-samples/ManagedDevices_Get.ps1 at master · microsoftgraph/powershell-intune-sample...

best response confirmed by Coopem16 (Occasional Contributor)
Thanks,
I already was reviewing the First link.