Last active
November 3, 2020 16:21
-
-
Save IAmStoxe/6c3d11bafcd7a1557ff871a52e64cf84 to your computer and use it in GitHub Desktop.
Sync w32tm to PDC on all domain controllers in a compact one liner.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Invoke-Command -ComputerName (Get-ADDomainController -Filter * | Select-Object -ExpandProperty Name) -ScriptBlock { | |
| w32tm /config /syncfromflags:domhier /reliable:no /update; net stop w32time; net start w32time; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment