Windows xp 客户端时间更新脚本NTP
::Windows XP 客户端时间更新脚本NTP reg add "HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Windows/CurrentVersion/DateTime/Servers" /ve /t REG_SZ /d 3 /freg add "HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Windows/CurrentVersion/DateTime/Servers" /v 1 /t REG_SZ /d time.windows.com /freg add "HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Windows/CurrentVersion/DateTime/Servers" /v 2 /t REG_SZ /d time.nist.gov /freg add "HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Windows/CurrentVersion/DateTime/Servers" /v 3 /t REG_SZ /d time1.aliyun.com /freg add "HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/W32Time/Parameters" /v NtpServer /t REG_SZ /d time1.aliyun.com /freg add "HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/W32Time/TimePRoviders/NtpClient" /v SpecialPollInterval /t REG_DWord /d 3600 /fsc config w32time start= autonet time /setsntp:time1.aliyun.comping -n 3 127.0.0.1 >nulnet stop w32timeping -n 3 127.0.0.1 >nulnet start w32timeping -n 3 127.0.0.1 >nulw32tm /resyncWindows 7,10 客户端时间更新脚本NTP(管理员身份运行)
::Windows 7,10 客户端时间更新脚本NTP(管理员身份运行) reg add "HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Windows/CurrentVersion/DateTime/Servers" /ve /t REG_SZ /d 3 /freg add "HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Windows/CurrentVersion/DateTime/Servers" /v 1 /t REG_SZ /d time.windows.com /freg add "HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Windows/CurrentVersion/DateTime/Servers" /v 2 /t REG_SZ /d time.nist.gov /freg add "HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Windows/CurrentVersion/DateTime/Servers" /v 3 /t REG_SZ /d time1.aliyun.com /freg add "HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/W32Time/Parameters" /v NtpServer /t REG_SZ /d time1.aliyun.com /freg add "HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/W32Time/TimeProviders/NtpClient" /v SpecialPollInterval /t REG_DWORD /d 3600 /fsc config w32time start= autoping -n 3 127.0.0.1 >nulnet stop w32timeping -n 3 127.0.0.1 >nulnet start w32timeping -n 3 127.0.0.1 >nulw32tm /config /manualpeerlist:"time1.aliyun.com" /syncfromflags:manual /reliable:yes /updateping -n 3 127.0.0.1 >nulw32tm /resync新闻热点
疑难解答