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

Safety First!

Today started out crazy, My wife is a runner and goes on a run almost every morning. I decided to join her for part of it and take a morni...