码迷,mamicode.com
首页 > Windows程序 > 详细

修改Windows 2008以后系统的NTP服务设置

时间:2016-04-29 11:44:28      阅读:462      评论:0      收藏:0      [点我收藏+]

标签:

技术分享
 1 @echo off  
 2 echo autor OAK  
 3 @echo off  
 4 echo --------------------------------  
 5 @echo off  
 6 echo setup time resync every one hour  
 7 @echo off  
 8 REG ADD HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\NtpClient /v SpecialPollInterval /t REG_DWORD /d 3600 /f  
 9 @echo off  
10 echo --------------------------------  
11 echo setup w32time auto startup  
12 @echo off  
13 REG ADD HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time /v Start /t REG_DWORD /d 2 /f  
14 @echo off  
15 echo --------------------------------  
16 @echo off  
17 set /p TimeServer=10.31.24.50
18 
19 w32tm /config /manualpeerlist:"10.31.24.50" /syncfromflags:manual /reliable:yes /update 
20 net stop w32time  
21 net start w32time  
22 w32tm /resync  
View Code

 

修改Windows 2008以后系统的NTP服务设置

标签:

原文地址:http://www.cnblogs.com/Martianhh/p/5445507.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!