我用bat 执行,想将下面的win32 time service 转成自动 或手动,当执行命令后无反应。
可有其它bat 命令或python cmd?
w32tm /config /syncfromflags:automatic /update
net stop w32time
net start w32time
可以尝试以管理员身份运行bat文件.
以下是一个示例bat文件,将win32 time service转换为自动启动:
@echo off
w32tm /config /syncfromflags:automatic /update
sc config w32time start= auto
net stop w32time
net start w32time
您好,我是有问必答小助手,您的问题已经有小伙伴帮您解答,感谢您对有问必答的支持与关注!创建.bat 批处理文件很简单,先创建一个txt文本文件,然后另保存
成 .bat
后缀文件即可