Intune for Education - Capturing Device Properties

%3CLINGO-SUB%20id%3D%22lingo-sub-912373%22%20slang%3D%22en-US%22%3EIntune%20for%20Education%20-%20Capturing%20Device%20Properties%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-912373%22%20slang%3D%22en-US%22%3E%3CP%3EI'm%20looking%20for%20a%20way%20to%20capture%20information%20from%20Device%20Properties%20from%20Devices%20within%20Intune%20For%20Education%20using%20a%20Powershell%20module%20or%20Microsoft%20Graph.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Einformation%20I'm%20interested%20in%20capturing%20but%20not%20limited%20to%20the%20listed%20of%20information%26nbsp%3B%3C%2FP%3E%3CP%3E-%20Recent%20Check-Ins%3C%2FP%3E%3CP%3E-%20Model%3C%2FP%3E%3CP%3E-%20Serial%20Number%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20You%2C%3C%2FP%3E%3CP%3E-Larry%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-912373%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EGraph%20API%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EIntune%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMobile%20Device%20Management%20(MDM)%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-914776%22%20slang%3D%22en-US%22%3ERe%3A%20Intune%20for%20Education%20-%20Capturing%20Device%20Properties%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-914776%22%20slang%3D%22en-US%22%3EHave%20you%20checked%20the%20Intune%20Powershell%20examples%20(%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fmicrosoftgraph%2Fpowershell-intune-samples%2Fblob%2Fmaster%2FManagedDevices%2FManagedDeviceOverview_Get.ps1%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2Fmicrosoftgraph%2Fpowershell-intune-samples%2Fblob%2Fmaster%2FManagedDevices%2FManagedDeviceOverview_Get.ps1%3C%2FA%3E)%3CBR%20%2F%3E%3CBR%20%2F%3EThat%20is%20a%20really%20good%20place%20to%20start.%20I%20would%20check%20out%20the%20script%20I%20linked.%20If%20it's%20not%20what%20you%20need%2C%20just%20send%20me%20a%20reply%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-915706%22%20slang%3D%22en-US%22%3ERe%3A%20Intune%20for%20Education%20-%20Capturing%20Device%20Properties%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-915706%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F186539%22%20target%3D%22_blank%22%3E%40Thijs%20Lecomte%3C%2FA%3E%26nbsp%3Bthank%20you%20for%20responding%20to%20my%20post.%20I%20been%20able%20to%20locate%20all%20the%20information%20i%20needed%20from%20using%20MS%20Graph%20except%20the%20list%20of%20user%20that%20would%20appears%20under%20%22Recent%20Check-In%22%20in%20Device%20Details.%3C%2FP%3E%3CDIV%20class%3D%22mceNonEditable%20lia-copypaste-placeholder%22%3E%26nbsp%3B%3C%2FDIV%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20290px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F137652i2F500143D7C2D55F%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22Check-In.PNG%22%20title%3D%22Check-In.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EI%20did%20look%20through%20GitHub%20but%20couldn't%20find%20the%20information%20on%20how%20capture%20list%20of%20users%20listed%20under%20%22Recent%20Check-In%22%20for%20a%20Azure%20AD%20Join%20device.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20You%2C%3C%2FP%3E%3CP%3E-Larry%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Contributor

I'm looking for a way to capture information from Device Properties from Devices within Intune For Education using a Powershell module or Microsoft Graph. 

 

information I'm interested in capturing but not limited to the listed of information 

- Recent Check-Ins

- Model

- Serial Number

 

Thank You,

-Larry

 

 

5 Replies
Highlighted
Have you checked the Intune Powershell examples (https://github.com/microsoftgraph/powershell-intune-samples/blob/master/ManagedDevices/ManagedDevice...)

That is a really good place to start. I would check out the script I linked. If it's not what you need, just send me a reply
Highlighted

@Thijs Lecomte thank you for responding to my post. I been able to locate all the information i needed from using MS Graph except the list of user that would appears under "Recent Check-In" in Device Details.

 

Check-In.PNG

I did look through GitHub but couldn't find the information on how capture list of users listed under "Recent Check-In" for a Azure AD Join device. 

 

Thank You,

-Larry

 

 

Highlighted
So you are trying to get the users whom have last checked into the device?
Is this something you view from the regular Intune portal ATM? (trying to recreate your question)
Highlighted

@Thijs Lecomte  Again thank you for responding.

 

So you are trying to get the users whom have last checked into the device? Yes

 

The last part I need to for the script is to get a list of users the recently check-in on that device. The information I'm trying to get can be view by selecting Intune for Education from Office 365 Admin Center --> Device --> select a Device --> next select "Go to Device details". In Device Detail on the left side, it shows anyone that check-in into the device.

 

Again Thank You!!!!

 

-Larry

 

Highlighted
Hi Larry

I have just played around a bit.
I didn't find anything about specific Graph version for Education, so it seems all the same to me.

I did find that if you use:
https://graph.microsoft.com/beta/deviceManagement/managedDevices/05b1fdd6-7403-4d70-a6a2-6e771ff7c26...
It will return a list of users. I haven't found documentation if this returns a list of the recent users or of the current logged on user.

But could you try this out?

Find an ID of a device by running "https://graph.microsoft.com/beta/deviceManagement/managedDevices"

If you have the userID, run the following query to get the object:
https://graph.microsoft.com/v1.0/users/c6b4f809-dab1-4835-8c56-77fed0722ee4

FYI: https://developer.microsoft.com/en-us/graph/graph-explorer is an awesome site to test out Graph queries.

Hit me up when you have tested it!