Setting Syslog Configuration via Get-EsxCli -v2


after battleing a little with Get-EsxiCli -v2 in the last couple of month I needed to write a quick script yesterday to reconfigure the Syslog Parameters on all Esxi Hosts.

A problem when you are coming from the old Get-EsxiCli is how to map the old command line to the new version. Luckily for us we have a helper:


will display a list of all functions you can use and


will return the hashtable values you can use to create the


syntax, for example

defaultrotate = 8
loghost = 'udp://syslogServer:514'

Complete Source Code can be found here: syslogConfig.ps1