Skip to content

Instantly share code, notes, and snippets.

@robert-moses
Last active May 21, 2018 12:25
Show Gist options
  • Select an option

  • Save robert-moses/6ee73c99bc6a48ff57480facc45483e9 to your computer and use it in GitHub Desktop.

Select an option

Save robert-moses/6ee73c99bc6a48ff57480facc45483e9 to your computer and use it in GitHub Desktop.
Windows ntp - time shortcuts
#w32tm
#On other DCs (not PDCe FSMO holder), servers and clients
w32tm /config /syncfromflags:domhier /update
# check configured status
w32tm /query /status
# Test Time Offset (in seconds)
w32tm /stripchart /computer:us.pool.ntp.org /samples:10 /dataonly
## Use a GPO with WMI filter for PDCe FSMO role holder
# Select * from Win32_ComputerSystem where DomainRole = 5
## Use a seperate GPO if needed to enforce ntp time settings (and set them back correctly)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment