Two ways to set the time to the PDC emulator

Using w32tm:

To sync time:

Go to the PDC emulator role for the forest, open a cmd prompt and type

w32tm /config /manualpeerlist:peers /syncfromflags:manual /reliable:yes /update  where peers are the IP address of time servers. If you have time servers for other network equipment use those.

Then type:

Net stop w32time & net start w32time

Then, on the other DCs open a cmd prompt and type:

w32tm /config /syncfromflags:domhier /update 

Net stop w32time & net start w32time

OR

VBScript:

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"

VBS Script To Set A Local Machines Time With the Windows 2003 Server PDC Emulator
dhite
Mon, 26 May 2008 12:42:14 GMT

 

[tags]vbscript, microsoft, windows, active directory[/tags]

About the Author

Jason Benway Has Written 1361 Articles For Us!

I am the admin of this site and enjoy enterprise technologies and gadgets.
Getting The Latest Tweet...
Did you know Jason has a website? Go see what you're missing...

Related posts:

  1. Daylight Saving Time – Windows Mobile Fix
  2. Transitioning your Active Directory to Windows Server 2008
  3. Updated Windows Server 2008 Step-by-Step Guides
  4. A huge time waster from way back!
  5. Adding Disk to Cluster on Windows 2008

Related posts brought to you by Yet Another Related Posts Plugin.