SOLVED
Home

Remove not active devices

%3CLINGO-SUB%20id%3D%22lingo-sub-193838%22%20slang%3D%22en-US%22%3ERemove%20not%20active%20devices%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-193838%22%20slang%3D%22en-US%22%3E%3CP%3EHey%2C%3CBR%20%2F%3E%3CBR%20%2F%3EAnyone%20knows%20if%20there%20is%20an%20option%20to%20do%20auto-clean%20up%20of%20devices%20which%20is%20not%20active%3F%20Like%20if%20devices%20is%20not%20connecting%20for%20more%20than%20a%20month%2C%20it%20should%20be%20deleted%20automaticaly.%3C%2FP%3E%3CP%3EOr%20i%20can%20do%20that%20only%20by%20using%20Graph%20API%20and%20scripting%20that%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-193838%22%20slang%3D%22en-US%22%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-262578%22%20slang%3D%22en-US%22%3ERe%3A%20Remove%20not%20active%20devices%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-262578%22%20slang%3D%22en-US%22%3E%3CP%3EYes%2C%20that%20feature%20was%20released%20after%20my%20post.%20I'm%20using%20that%20now%2C%20however%20it%20would%20be%20nice%20to%20minimize%20time%20from%2090%20to%2030%20days.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-262576%22%20slang%3D%22en-US%22%3ERe%3A%20Remove%20not%20active%20devices%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-262576%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Alexander%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIn%20the%20meantime%20it%20is%20also%20available%20through%20the%20Intune%20Portal.%20You%20can%20create%20a%20device%20cleanup%20rule.%20Per%20Larsen%20has%20described%20this%20on%20his%20blog%3A%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fosddeployment.dk%2F2018%2F07%2F08%2Fautomatic-device-cleanup-in-intune%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fosddeployment.dk%2F2018%2F07%2F08%2Fautomatic-device-cleanup-in-intune%2F%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBest%20regards%2C%3C%2FP%3E%3CP%3ERuud%20Gijsbers%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-194334%22%20slang%3D%22en-US%22%3ERe%3A%20Remove%20not%20active%20devices%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-194334%22%20slang%3D%22en-US%22%3E%3CP%3EYou're%20welcome.%20Glad%20I%20could%20help.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-194320%22%20slang%3D%22en-US%22%3ERe%3A%20Remove%20not%20active%20devices%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-194320%22%20slang%3D%22en-US%22%3E%3CP%3EThank%20you!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-194314%22%20slang%3D%22en-US%22%3ERe%3A%20Remove%20not%20active%20devices%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-194314%22%20slang%3D%22en-US%22%3E%3CP%3EHey%20Alexander%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAt%20the%20moment%20it's%20only%20available%20through%20Graph%20API.%20A%20sample%20script%20can%20be%20found%20here%3A%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fblogs.technet.microsoft.com%2Fsmeems%2F2018%2F03%2F07%2Fdevice-cleanup-with-graph-api%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fblogs.technet.microsoft.com%2Fsmeems%2F2018%2F03%2F07%2Fdevice-cleanup-with-graph-api%2F%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBest%20regards%2C%3C%2FP%3E%3CP%3ERuud%20Gijsbers%3C%2FP%3E%3C%2FLINGO-BODY%3E
Alexander Vanyurikhin
Contributor

Hey,

Anyone knows if there is an option to do auto-clean up of devices which is not active? Like if devices is not connecting for more than a month, it should be deleted automaticaly.

Or i can do that only by using Graph API and scripting that?

5 Replies
Highlighted
Solution

Hey Alexander,

 

At the moment it's only available through Graph API. A sample script can be found here:

https://blogs.technet.microsoft.com/smeems/2018/03/07/device-cleanup-with-graph-api/

 

Best regards,

Ruud Gijsbers

Thank you!

You're welcome. Glad I could help.

Hi Alexander,

 

In the meantime it is also available through the Intune Portal. You can create a device cleanup rule. Per Larsen has described this on his blog:

https://osddeployment.dk/2018/07/08/automatic-device-cleanup-in-intune/

 

Best regards,

Ruud Gijsbers

Yes, that feature was released after my post. I'm using that now, however it would be nice to minimize time from 90 to 30 days.

Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
46 Replies
Extentions Synchronization
Deleted in Discussions on
3 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
30 Replies
flashing a white screen while open new tab
Deleted in Discussions on
14 Replies
Security Community Webinars
Valon_Kolica in Security, Privacy & Compliance on
13 Replies