Share via

Intune PowerShell Enable Lost Mode

Anonymous
2023-07-07T20:40:00+00:00

Hi there,

I want to disable multiple devices (Apple Devices) in Intune. Particularly I want to put them in Enable Lost Mode = Enabled

Once the LostModeState = Disabled I am successfully able to Enable this state using this PowerShell Command

invoke-msGraphRequest -Url "/deviceManagement/managedDevices/$device.id/DisableLostMode -HTTPMethod POST

The above command is working just fine.

But when I use the same command to enable the Same devices it is not working. I am using this command to enable the LostModeState

$message = 'test-disable'

invoke-msGraphRequest -Url "/deviceManagement/managedDevices/$device.id/EnableLostMode -HTTPMethod POST -Content $message

Thanks for your help

Windows Insider program | Apps on Insider preview

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

1 answer

Sort by: Most helpful
  1. Anonymous
    2023-07-07T21:13:23+00:00

    This forum is dedicated to the Windows Insider Program.

    Try posting at https://learn.microsoft.com/en-us/answers/questions/

    Here's a quick search using the title of your thread

    84,505 results for "Intune PowerShell Enable Lost Mode" in Q&A

    Was this answer helpful?

    0 comments No comments