Commandline Tricks To Do The Job Faster
If the time is off there is probably something wrong with the timeserver ntp settings.
To correct this or troubleshoot this, try to do the following in windows xp.
The best practise is to sync against your domain controller and let the domain controller sync with a server which has an antenna.
- Run cmd with the right credentials
- w32tm /config /computer:computername /manualpeerlist:timeserver,0x1 /syncfromflags:manual /update
- The command completed successfully.
- Stop the time service Windows Time and start it again to refresh its settings
- w32tm /resync /computer:computername /rediscover
- This can take awhile
- If you get a message The computer did not resync because only stale time data was avaible just wait a little longer
- Check the time with:
- w32tm /monitor /computers:computername
- The output is like:
- computername [ip-address]:
ICMP: 0ms delay.
NTP: +0.0143554s offset from local clock
RefID: timeserver.domain [ip-address]
To see which time server is configured use the following command:
reg query HKLM\system\Currentcontrolset\Services\W32time\Parameters