🎮 网吧三国← 返回
← 返回网吧三国
💡 实用技巧 · 👁 613

开机批处理启动客户机时间同步

网友 网吧三国← 原站原文
可以在管理端通过易游开机批处理来完成

命令如下:

@echo off
sc config w32time start= auto
net stop w32time
net start w32time
net time [url=]\192.168.0.120[/url]   /set /y

192.168.0.120 是你共享服务器的地址~

运行这个批处理前要先把批处理改名为system.bat放到用户数据区 Userdata$Globalconfig目录下

如果192.168.0.120的机器没有开启共享,那么就必须要先开启,设置共享后重启生效。


在管理端——点击【参数设置】——客户端参数设置-开机启动项——编辑开机批处理-system.bat

@echo off
sc config w32time start= auto
net stop w32time
net start w32time
net time \192.168.50.160 /set /y

设置好后点击【保存】即可


客户机重启后设置生效