powershell-intune-samples icon indicating copy to clipboard operation
powershell-intune-samples copied to clipboard

deviceActionResults does not display Wipe action

Open JEngel05 opened this issue 5 years ago • 2 comments

Nearly identical to issue #35, but for "wipe" instead of "retire". When initiating an Intune device wipe, it shows an action of "wipe" and a status of "pending" within the Intune web console. However, when doing an invoke-restmethod via Powershell, the deviceActionResults never populates. It simply returns a blank object shown as { }.

This is the exact property I am referring to: https://docs.microsoft.com/en-us/graph/api/resources/intune-devices-deviceactionresult?view=graph-rest-1.0

JEngel05 avatar Jan 13 '21 21:01 JEngel05

Are you using v1.0 or beta version when calling invoke-restmethod? If your using v1.0 can you test with beta?

davefalkus avatar Jan 14 '21 10:01 davefalkus

I actually tried with both. Neither work. The beta does contain a new property called "managementState" which displayed "wipePending". I would use the beta version and that property but i am concerned about using the beta api in a production workflow.

JEngel05 avatar Jan 14 '21 14:01 JEngel05