Loading |
VBScript |
JavaScript |
Powershell |
Search Options: Shut Down a ComputerContent of Shut Down a Computer.vbsMD5 Hash: 2E59EAD0F5CA05CB0DFF36678F80828D |
||
' Description: Shuts down a computer.
strComputer = "." Set objWMIService = GetObject_ ("winmgmts:{impersonationLevel=impersonate,(Shutdown)}\\" & _ strComputer & "\root\cimv2") Set colOperating Systems = objWMIService.ExecQuery _ ("Select * from Win32_OperatingSystem") For Each objOperatingSystem in colOperatingSystems objOperatingSystem.Win32Shutdown(1) Next | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |