重启计算机 谁可以把这个程序讲清楚点
vbscript吧
全部回复
仅看楼主
level 1
linmuyu 楼主
strComputer = "atl-dc-01" 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 这个程序非常好,但我的水平还看不懂,里边的一些函数功能我不明白,如果有谁懂的话可以给大家讲一下
2006年06月01日 06点06分 1
level 0
用了wmi组件,也可以:set shell=createobject("shell.application")shell.shutdownwindows
2007年01月10日 09点01分 2
1