Closed patlewis-MSFT closed 5 years ago
I was able to reproduce this behavior also in Graph Explorer by adding the 3 parameters to the request body so it appears this is causing the problem. In the Powershell cmdlet there is no way to eliminate sending the parameters without a code change in cmdlet.
@patlewis-MSFT Thank you for raising this issue! It has now been fixed in the latest version (6.1907.1.0) on the PowerShell Gallery. The "macOsUnlockCode" parameter is no longer mandatory.
Today I was trying to run Invoke-IntuneManagedDeviceWipeDevice without macLockcode but it fails, please see screenshot below please assist
Running Invoke-IntuneManagedDeviceWipeDevice fails although working in Graph explorer.
Steps to repro: Connect-MSGraph $devices = Get-IntuneManagedDevice