A
Angelo Campitelli
Im using the following script to reboot my machine... however if i have
locked the screen with
rundll32.exe user32.dll,LockWorkStation
the script doesnt shutdown the machine. It just kills the running
processes.... Any ideahow i can get it to shutdown the machine with the
screen locked.
Set OpSysSet =
GetObject("winmgmts:{impersonationLevel=impersonate,(RemoteShutdown)}//alexn-
pc ").ExecQuery("select * from Win32_OperatingSystem where Primary=true")
for each OpSys in OpSysSet
OpSys.Reboot()
Next
locked the screen with
rundll32.exe user32.dll,LockWorkStation
the script doesnt shutdown the machine. It just kills the running
processes.... Any ideahow i can get it to shutdown the machine with the
screen locked.
Set OpSysSet =
GetObject("winmgmts:{impersonationLevel=impersonate,(RemoteShutdown)}//alexn-
pc ").ExecQuery("select * from Win32_OperatingSystem where Primary=true")
for each OpSys in OpSysSet
OpSys.Reboot()
Next