How To Set Timezone Server

1w32tm /query /status
2
3Write-Host "Setting timezone server as {timezoneServer.fqn}"
4
5w32tm /config /syncfromflags:manual `
6    /manualpeerlist:"{timezoneServer.fqn}" `
7    /reliable:yes /update

If you get the error when running the above command at line 1: The following error occurred: The service has not been started. (0x80070426) Run these commands:

1w32tm /unregister
2w32tm /register
3net start w32time