Link to home
Start Free TrialLog in
Avatar of Kenneth Platt
Kenneth PlattFlag for Guam

asked on

I need one command to force all computers including workstations, servers and domain controllers to synchronize their time in the domain to an internal time server

I need one command to force all computers including workstations, servers and domain controllers to synchronize their time in the domain  to an internal time serve
Avatar of arnold
arnold
Flag of United States of America image

Which internal.
In AD the DC primary commonly is the one with which all other systems and workstation synchronize to.

What is the issue youare looking to solve?

You can script powershell to connect to each sustem and initiate a resync.

Though as said earlier it is unnecessary as they should be syncing on their own.

Try on one net time /sync see what you get as a response.
Avatar of Kenneth Platt

ASKER

There is a time server set up and normally things sync fine. The time server jumped 10 minutes and threw everything off. Once I corrected that as I wrote I am seeking a command that forces to re-syncs all devices.
they should refresh at their own pace.
w32tm is the tool.

use the date and time display, and hit sync there.

windows key +I
time and language and hit the sync button.
Isn't there a W32tm command available that will sync all devices ?
ASKER CERTIFIED SOLUTION
Avatar of oBdA
oBdA

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
You are in a workgroup, so each computer has to have the command run manually and individually.
He systems should auto sync in time depending on the settings you used to set ..
The same way they drifted by 10 minutes they'll resync.
You can use...
at \\ServerSource 0:01 w32tm /resync /set /y
at \\ServerTarget 00:02 net time \\ServerSource /set /y

to resync the time source
and then to set a server to the time of the time source....

But you have to repeat the last line for every target server....

Rather than to work around this issue, I would try to clarify, why your time is jumping. If you use reliable time sources, it should not happen. 
You should configure your PDC to sync time from this internal time server. In turn DCs will sync from the PDC and member workstations and servers will sync from DCs. You can configure this in a GPO and use a WMI filter filtered to PDC to dynamically set this on the PDC, even if role is move

Use GPO to maintain PDC Emulator's Time Service - Spiceworks 
Shaun Vermaak , I will look into the GPO. Thank you
BembiUser generated image Thank you, I will give this some testing
arnold  Thank you for your input