Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save IAmStoxe/6c3d11bafcd7a1557ff871a52e64cf84 to your computer and use it in GitHub Desktop.

Select an option

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.
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