Configure the Local Account Lockout Policy
for ESXi
Set the maximum number of failed login attempts and the time that must pass before a
local account on an ESXi host in
VMware Cloud Foundation
is automatically unlocked.Setting | Default Value |
---|---|
Security.AccountLockFailures | 5 |
Security.AccountUnlockTime | 900 |
UI Procedure
- Log in to the management domain vCenter Server athttps://<management_vcenter_server_fqdn>/uiby using an account withAdministratorprivileges.
- In theHosts and clustersinventory, expand the management domain vCenter Server tree and expand the management domain data center.
- Expand the default management 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.AccountLockFailuresand enter a value according to the requirements of your organization.
- In the key filter text box, enterSecurity.AccountUnlockTime, enter a value according to the requirements of your organization, and clickOK.
- Repeat this procedure on the remaining hosts in the cluster.
- Repeat this procedure on the remaining clusters in the management domain.
- Repeat this procedure on all clusters in the VI workload domains.
PowerShell Procedure
- Start Windows 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" $maxFailures = "5" $unlockInterval = "900"
- Perform the configuration by running the command in the PowerShell console.Update-EsxiAccountLockout -server $sddcManagerFqdn -user $sddcManagerUser -pass $sddcManagerPass -domain $sddcDomainName -cluster $cluster -failures $maxFailures -unlockInterval $unlockInterval
- Repeat this procedure on all remaining clusters in the management domain.
- Repeat this procedure on all VI workload domains and their clusters.