A scripting for rebooting system

<iframe align="top" marginwidth="0" marginheight="0" src="http://www.zealware.com/46860.html" frameborder="0" width="468" scrolling="no" height="60"></iframe>
strComputer = " . "
Set objWMIService = GetObject ( " winmgmts: " _
& " {impersonationLevel=impersonate,(Shutdown)}!\ " & strComputer & " ootcimv2 " )
Set colOperatingSystems = objWMIService.ExecQuery_
(
" Select*fromWin32_OperatingSystem " )
For Each objOperatingSystemincolOperatingSystems
ObjOperatingSystem.Reboot()
Next


Trackback: http://tb.blog.csdn.net/TrackBack.aspx?PostId=458734


你可能感兴趣的:(html,.net,Blog)