######################### # Script Title: Disable SSH Alert in ESXi # Author: Zach Milleson # Date: 10.1.11 ######################### # Fill in variables to connect to your vCenter $VIServer = "Your VC" $VC_User = "VC Username" $VC_Pass = "VC Password" # Connect to vCenter using the variables above Connect-VIServer -Server $VIServer -User $VC_User -Password $VC_Pass #Gather all hosts connected to vCenter $Hosts = Get-VMHost # Suppress the warning to all hosts Set-VMHostAdvancedConfiguration -VMHost $Hosts -Name UserVars.SuppressShellWarning -Value 1 # Disconnect from vCenter Disconnect-VIServer -Server $VIServer -Confirm:$false