Browse Community
Help
Log In
Responses(1)
Solutions(1)
stusken
1 Rookie
•
6 Posts
0
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
Dell Support Resources
View All
Top
stusken
1 Rookie
•
6 Posts
0
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.
I also used the certificate policy taken from GitHub
https://github.com/dell/OpenManage-Enterprise/blob/master/Scripts/PowerShell/Set-PowerState.ps1
Cheers