Unsolved
This post is more than 5 years old
3 Posts
0
9690
Special Characters cause error when setting Dell M620 BIOS Setup password via WinRM.
I have successfully scripted the changing of BIOS Setup passwords for M620 blades in powershell using WinRM. However.. when I attempt to set a new password using special characters, Wsman on the Dell M620 replies with a BIOS18 error and message stating "Invalid BIOS Password".
Entering a password containing special characters at the console works!?
Is there any work around to this?
In our situation, OME isn't being utilized. It is simply a powershell script issuing 2 WinRM commands:
"ChangePassword" method:
winrm i ChangePassword cimv2/root/dcim/DCIM_BIOSService?SystemCreationClassName=DCIM_ComputerSystem+CreationClassName=DCIM_BIOSService -u:USERNAME -p:PASSWORD -r:https://IP -SkipCNcheck -SkipCAcheck -encoding:utf-8 -f:xml -a:basic @{OldPassword="OLDPASSWORD";NewPassword="NEWPASSWORD";PasswordType="2";Target="BIOS.Setup.1-1"}
and the "CreateTargetedConfigJob" method:
winrm i CreateTargetedConfigJob cimv2/root/dcim/DCIM_BIOSService?SystemCreationClassName=DCIM_ComputerSystem+CreationClassName=DCIM_BIOSService -u:USERNAME -p:PASSWORD -r:https://IP -SkipCNcheck -SkipCAcheck -encoding:utf-8 -f:xml -a:basic @{ScheduledStartTime="TIME_NOW";RebootJobType="3";Target="BIOS.Setup.1-1"}
This works great when applying a password without any special characters, but fails with them..
ajay_shenoy
15 Posts
0
March 20th, 2014 07:00
What special characters are being used in the password?
~Ajay@Dell
nadogmoney
183 Posts
0
March 20th, 2014 10:00
I had an issue with idrac7 and pre 7.3 OMSA components not liking built in linux variables like $$, $user, $pwd, etc in the password. The password would take, but the idrac OS (linux) would substitute the variable in the password. It doesn't seem like you have the same issue but maybe you have a $something in your password.