我研究了一阵,写了一个脚本,可以解决这个问题
两个文件放同一个目录,然后将aura.vbs放在开机启动项
文件1:restart.bat
@璐村惂鐢ㄦ埛_000076K馃惥 off
choice /t 15 /d y /n >nul
sc stop LightingService
choice /t 1 /d y /n >nul
sc start LightingService
文件2:aura.vbs
Set shell = Wscript.createobject("wscript.shell")
a = shell.run ("restart.bat",0)