Can the default complex password policy for ESX4i be changed with powershell instead of editing /etc/pam.d/common-password to change this
pam_passwdqc.so retry=3 min=8,8,8,7,6
into
pam_passwdqc.so retry=3 min=0,0,0,0,0
Thanks.
Afaik that functionality is not exposed through a public API.
You can of course use the plink.exe tool and change the file like that.
____________
Blog: LucD notes
Twitter: lucd22
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Hi Luc,
In which case, is there a way to enable SSH on ESX4i using Powershell?
That should be possible with the Set-VMHostFirmware cmdlet.
Firts you download the firmware to a local file, make the required edits and then upload the changed archive back to the ESXi server.
Have look at Eric's video. He uses the esxcfg-cfgbackup.pl script for the donwload but the Set-VMHostFirmware cmdlet allows you to do the same thing.
____________
Blog: LucD notes
Twitter: lucd22
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference