G-regL
6/13/2017 - 4:01 PM

SNIP | VMware - Host - Get / Set NTP details for hosts

SNIP | VMware - Host - Get / Set NTP details for hosts

Get-VMHost | Sort Name | Select Name, @{N="NTPServer";E={$_ |Get-VMHostNtpServer}}, @{N="ServiceRunning";E={(Get-VmHostService -VMHost $_ |Where-Object {$_.key-eq "ntpd"}).Running}}