PDA

View Full Version : restart shortcut (W2K)



coombesy
10-12-2003, 03:54 PM
can anyone remember the shortcut for restart. it'd help alot,
cheers,
};>p

jdharm
10-13-2003, 10:47 AM
Save as a *.vbs file. Replace the blue <font color=blue>x</font color=blue> with a number from the comment list:

Set objSystemSet = GetObject("winmgmts:{impersonationLevel=impersonate,(Shutdown )}")_
.InstancesOf("Win32_OperatingSystem")

For Each objSystem In objSystemSet
objSystem.Win32Shutdown <font color=blue>x</font color=blue>
Next


'0- Logoff
'1- Shutdown
'4- Force Logoff
'2- Reboot
'6- Force Reboot
'8- Powerdown
'12- Force Powerdown

Josh
<a target="_blank" href=http://www.jdharm.net>www.jdharm.net</a>