Can Intune report on all iOS devices set to Lost Mode (possibly using MSGraph / PS)?

PiersMH 41 Reputation points
2024-04-15T16:14:54.18+00:00

Hi,

I'm trying to find a way of reporting on all iOS devices where Lost Mode has been enabled (or tried to be enabled). There is no column to display this and if you dive into a device, this doesn't appear to be stored in a defined field, just a status message across the top.

  • I am using PS via MSGraph module, and when reporting on all fields, this reflects the same thing, no field showing anything related to Lost Mode.
  • I can use PS to Get a device and trigger Disable Lost Mode (not enable it), but can't do anything more with it (for ref):
Get-IntuneManagedDevice -Filter "serialnumber eq 'ABAB1212ABAB'" | Invoke-IntuneManagedDeviceDisableLostMode  

I am wondering if it's possible to test for whether Lost Mode has been triggered, but if that's possible, can't figure it out.

Any help appreciated.

TIA.

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,625 questions
Microsoft Intune iOS
Microsoft Intune iOS
Microsoft Intune: A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.iOS: An Apple mobile operating system.
187 questions
Microsoft Intune
Microsoft Intune
A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.
4,357 questions
0 comments No comments
{count} votes

Accepted answer
  1. Crystal-MSFT 43,221 Reputation points Microsoft Vendor
    2024-04-16T02:03:06.96+00:00

    @PiersMH, Thanks for posting in Q&A. Based on my researching, Get managedDevice API can check if the "lostModeState" is enabled or not.

    https://learn.microsoft.com/en-us/graph/api/intune-devices-manageddevice-get?view=graph-rest-beta

    Meanwhile, here is a link list the script to enable Lost Mode

    https://github.com/Seidlm/Microsoft-Graph-API-Examples/blob/main/Enable%20Lost%20Mode%20for%20Intune%20Device.ps1

    Note: Non-Microsoft link, just for the reference.

    Hope the above information can help.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful