Loading |
VBScript |
JavaScript |
Powershell |
Search Options: Restart a ComputerContent of Restart a Computer.vbsMD5 Hash: 99B28BBADE8BF66D706932EDA6358998 |
||
' Description: Restarts a computer.
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 | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |