How to Configuring an NTP Time Server on ESXi PowerCLI
If there are no NTP server configured
Get-VMHost esx01 | Add-VMHostNtpServer -NtpServer ntpservername
Or to first of all clear existing NTP server(s) then set the new one:
Get-VMHost esx01 | Remove-VMHostNtpServer -NtpServer (Get-VMHost esx01 | Get-VMHostNtpServer) Get-VMHost esx01 | Add-VMHostNtpServer -NtpServer ntpservername