'重新启动$ ]9 n0 m) h/ J5 D
strComputer = "."
5 m6 E" H+ d. `4 LSet objWMIService = GetObject("winmgmts:" _
" K# ~7 m" ~4 G' g+ P( S & "{impersonationLevel=impersonate,(Shutdown)}!\\" & strComputer & "\root\cimv2")
5 a; q& H/ c$ Z) c3 oSet colOperatingSystems = objWMIService.ExecQuery _
. W! V4 e; A% N1 R3 h微软技术在线 您的潜力,我们的动力! ("Select * from Win32_OperatingSystem")
" p9 }% V" T5 `6 E/ Xwww.msclub.org.cnFor Each objOperatingSystem in colOperatingSystems: s' \! c0 z1 t( Z
ObjOperatingSystem.Reboot()
0 g: |- E1 y9 m+ K* ~微软技术在线 您的潜力,我们的动力!Next |