This VBS script will allow you to set the time on a local machine to the official Windows 2003 Server domain time by promoting you for the PDC Emulator name.
The script can also be used to run in a scheduled task for troublesome machines.
VBS Script:
strPdcEmulator = InputBox ("Enter Your PDC Emulator Name")
Set WshShell = WScript.CreateObject("WScript.Shell")
objcmnd = "Cmd /C Net Time \\" & strPdcEmulator & " /Set /y"
WshShell.Run(objcmnd)
MsgBox "Done"
No Comments