This set of commands is aprt of our standard build process.
#Configure NTP server
Add-VmHostNtpServer -VMHost $esx -NtpServer servername#Allow NTP queries outbound through the firewallGet-VMHostFirewallException -VMHost $esx | where {$_.Name -eq "NTP client"} | Set-VMHostFirewallException -Enabled:$true#Start NTP client service and set to automaticGet-VmHostService -VMHost $esx | Where-Object {$_.key -eq "ntpd"} | Start-VMHostServiceGet-VmHostService -VMHost $esx | Where-Object {$_.key -eq "ntpd"} | Set-VMHostService -policy "automatic"