Add additional Syslog servers to ESXi hosts

This script proved to be a little more challenging than I had first expected. As you may be aware, simply running Set-VMHostSysLogServer will overwrite your existing configuration which is less than ideal when you’re trying to add a new server to your list. This script will prompt you for a file that will need to

Loading

Check host domain membership

Quick one line list all host in a cluster and display their domain membership status Get-Datacenter $global:DCChoice | Get-Cluster $global:CLUChoice | get-vmhost | Get-VMHostAuthentication | select -Property VMhost, @{N=”Domain”;E={$_.vmhost.Domain}},@{N=”DomainMembershipStatus”;E={$_.vmhost.DomainMembershipStatus}}

Loading

Configure NTP & Syslog

The below script allows you to quickly configure the NTP & Syslog settings on all hosts in a specified cluster. It will prompt you to enter an NTP server & Syslog server address before applying it to each host. Im using my usual variables:$Global:DCChoice – DC Choice$Global:CLUChoice – Cluster Choice function VP-SetNTPandSyslog { $NTPServer =

Loading