Monday, July 20, 2015

Let that vCenter password expire

So you all know it is good for your vcenter password to expire every now and then (a regular interval of course) but you want to make sure it does since keeping the same password forever is a security threat.
here is a tiny way to make sure of that.
Set the value to 30 days for the vcenter password to expire
Get-AdvancedSetting -Entity $vcenter -Name vCenterVirtualCenter.VimPasswordExpirationInDays |  Set-AdvancedSetting -Value "30"
now let us make sure it is done by doing
Get-AdvancedSetting -Entity $vcenter -Name vCenterVirtualCenter.VimPasswordExpirationInDays