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
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
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
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.
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