dell / iDRAC-Redfish-Scripting

Python and PowerShell scripting for Dell EMC PowerEdge iDRAC REST API with DMTF Redfish
GNU General Public License v2.0
600 stars 278 forks source link

PowerShell - Invoke-ChangeIdracUserPassword - Script doesn't complete #195

Closed Godeck99 closed 2 years ago

Godeck99 commented 2 years ago

Hello,

I'm using PowerShell 7.2.0 and tried to change the iDRAC's password.

The output will only be "- INFO, executing PATCH command to change iDRAC user password" and terminate immediately.

After checking the function I found on the line 205: $result1 = Invoke-WebRequest -UseBasicParsing SkipHeaderValidation -SkipCertificateCheck -Uri $uri -Credential $credential -Method Patch -Body $JsonBody -ContentType 'application/json' -Headers @{"Accept"="application/json"} -ErrorVariable RespErr

After adding a "-" on the parameter SkipHeaderValidation it works fine.

Thank you for this very helpful module!

texroemer commented 2 years ago

@Godeck99

Thanks for pointing out this issue. I fixed the cmdlet and uploaded new version to GitHub.

Thanks Tex