Created
July 31, 2014 13:34
-
-
Save clarkey/e05e5d53fe2f3a7c9d98 to your computer and use it in GitHub Desktop.
Fix or sync Windows time from a domain controller
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
@echo off | |
cls | |
set /p user=Enter local admin credentials (DOMAIN\USER or WORKSTATION\USER): | |
set /p dc=Enter domain controller hostname (fully qualified domain name): | |
runas /u:%user% "net time \\%dc% /set /yes" | |
pause |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment