Thursday, September 27, 2007

VBScript for Remote Shutdown

'Script Start


Set OpSysSet = GetObject("winmgmts:{impersonationLevel=impersonate,(RemoteShutdown)}//Your ip address").ExecQuery("select * from Win32_OperatingSystem where Primary=true")
for each OpSys in OpSysSet
OpSys.Reboot()
Next



'Script End

Got from website www.vittorio.tk

How to execute a VBScript

1 comment:

Anonymous said...

Good fill someone in on and this mail helped me alot in my college assignement. Thank you seeking your information.