Share via

Windows wipe from Graph API

IntuneUser 181 Reputation points
2022-08-09T07:45:24.527+00:00

I would like to perform a wipe on Windows devices.
I am currently using:

POST /deviceManagement/managedDevices/{managedDeviceId}/wipe

and

Request:
{
"keepEnrollmentData": false,
"keepUserData": false,
"macOsUnlockCode": "Mac Os Unlock Code value",
"persistEsimDataPlan": false
}

I am getting error: Bad Request - 400
I am suspecting that macOsUnlockCode is causing the issue. What should be the value of: macOsUnlockCode ?

Also, I would really appreciate if there are any step by step guidance to achieve the wipe from Graph Explorer using the given command.

Microsoft Security | Intune | Other
Microsoft Security | Microsoft Graph

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.