1 Rookie

 • 

6 Posts

May 27th, 2019 18:00

I seem to have got this to work using WebRequest instead of RestMethod for the PUT method. Still using RestMethod for GET as it creates the network objects for me.

$response = Invoke-WebRequest -Uri $uri -Method Put -Body $body -ContentType 'application/json' -Credential $cred

I also used the certificate policy taken from GitHub

https://github.com/dell/OpenManage-Enterprise/blob/master/Scripts/PowerShell/Set-PowerState.ps1

Cheers

No Events found!

Top