Configure the Local User Password Complexity Policy for ESXi
Define the requirements for local user passwords for the ESXi hosts in
VMware Cloud Foundation
including required password length, character class requirements, or allowing passphrases.Setting | Default Value |
---|---|
Security.PasswordHistory | 0 |
Security.PasswordQualityControl | retry=3 min=disabled,disabled,disabled,7,7 |
For information about the format of the
Security.PasswordQualityControl
settings, see ESXi Passwords and Account Lockout in the vSphere Security
documentation.UI Procedure
- Log in to the vCenter Server instance for the workload domain athttps://<vcenter_server-fqdn>/uiby using an account withAdministratorprivileges.
- In theHosts and clustersinventory, navigate to and expand the first vSphere cluster.
- Select the first ESXi host and click theConfiguretab.
- In theSystemsection, clickAdvanced system settings.
- On theAdvanced system settingspage, clickEdit.
- In the key filter text box, enterSecurity.PasswordHistory, configure the settings according to the requirements of your organization.
- In the key filter text box, enterSecurity.PasswordQualityControl, enter values for the settings according to the requirements of your organization, and clickOK.
- Repeat this procedure on all remaining hosts in the cluster.
- Repeat this procedure on all remaining clusters in the workload domain.
- Repeat this procedure for all the other workload domains and their clusters.
PowerShell Procedure
- Start PowerShell.
- Replace the values in the sample code and run the commands in the PowerShell console.$sddcManagerFqdn = "sfo-vcf01.sfo.rainpole.io" $sddcManagerUser = "administrator@vsphere.local" $sddcManagerPass = "VMw@re1!" $sddcDomainName = "sfo-m01" $cluster = "sfo-m01-cl01" $policy = "retry=3 min=disabled,disabled,disabled,7,7” $history = "3"
- Perform the configuration by running the command in the PowerShell console.Update-EsxiPasswordComplexity -server $sddcManagerFqdn -user $sddcManagerUser -pass $sddcManagerPass -domain $sddcDomainName -cluster $cluster -policy $policy -history $history
- Repeat this procedure on all remaining clusters in the$sddcDomainNameworkload domain.
- Repeat this procedure for all clusters in the remaining workload domains.