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

'Script End

Got from website

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.