Thursday, December 18, 2014

Powershell Changing Syslog servers for VMware ESXI 5.X

A quick little script for changing all of you ESX hosts to a new syslog server.

#____________________________________
Connect-VIServer <VirtualCenterServerName>

$hosts = Get-VMHost

Foreach ($esxhost in $hosts)

{Set-VMHostAdvancedConfiguration Syslog.global.logHost -Value <SYSLOG SERVER NAME OR IP> -VMHost $esxhost}
#____________________________________

No comments:

Post a Comment