Disable SSH Warning on All VMware 5.5 Hosts – “One-liner quickies”

Here is a quick one to disable the “ssh has been enabled for this host” warning on all hosts you manage. (already connected “connect-viserver yourhost”)

Get-VMHost | Get-AdvancedSetting -Name 'UserVars.SuppressShellWarning' | Set-AdvancedSetting -Value "1" -Confirm:$false