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
One thought on “Two ways to set the time to the PDC emulator”
Leave a Reply Cancel reply
This site uses Akismet to reduce spam. Learn how your comment data is processed.
More Stories
Azure AD and Windows hello for business, SSO for on-premises resources
We disabled WFB when we first rolled out autopilot because we are not ready to deploy and support passwordless at...
Recover Microsoft forms from old users
Microsoft forms are a great way to collect data from the user. However, what happens when the user leaves the...
Creating a document management system with SharePoint
Searching for documents can be a cumbersome and time-consuming task, especially if there is no proper system in place for...
Internal certificates for desktop phones
We are looking at a new cloud based phone system. Most use Poly or Yealink phones, we use 802.1x on...
Intune certificate connector
upgrading to certificate connector 6.2 that is required in Sept 2022, has broke our NDES for intune. I'm collecting all...
Microsoft ATP documentation
We've deployed ATP to our windows workstation, now I'm researching it for our MACs and IOS devices. I pushed it...
I would like to test the code.
kirans last blog post..Jagd nach dem Gold