Change ESXi security settings via CLI
Olivia Zamora
Is there a way to change security settings of an ESXi (6.7u2) via CLI ? Standard advanced settings can be modified by the following command :
esxcli system settings advanced set -o /Mem/ShareForceSalting -i 2 Or kernel settings can be change with the command :
esxcli system settings kernel set -s hyperthreading -v FALSE But I can't fin a way to change security parameters from CLI (it's okay with GUI). For instance, I'm unable to change theses parameters from CLI :
- Security.AccountUnlockTime
- Security.AccountLockFailures
- ...
Can someone help on that ?
41 Answer
The security settings are not listed in available parameters with
esxcli system settings advanced list | grep “Security”.
I haven’t found also in other namespaces like security and account.
But you can manage this settings via PowerCLI :
Set-VMHostAdvancedConfiguration Security.AccountLockFailures -Value 10
Set-VMHostAdvancedConfiguration Security.AccountUnlockTime -Value 100References:
1