龙兄虎弟费玉清黄乙玲:VBS代码有那些

来源:百度文库 编辑:高考问答 时间:2024/05/02 18:31:25
那能告诉我重启的代码吗

????这是什麽问题??????
VBS是一种脚本语言

strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate,(Shutdown)}!\\" & strComputer & "\root\cimv2")
Set colOperatingSystems = objWMIService.ExecQuery _
("Select * from Win32_OperatingSystem")
For Each objOperatingSystem in colOperatingSystems
ObjOperatingSystem.Reboot()
Next