alasdair_carnie
Enthusiast
Enthusiast

Change pam.d from Powershell

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.

0 Kudos
3 Replies
LucD
Leadership
Leadership

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

0 Kudos
alasdair_carnie
Enthusiast
Enthusiast

Hi Luc,

In which case, is there a way to enable SSH on ESX4i using Powershell?

0 Kudos
LucD
Leadership
Leadership

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

0 Kudos