Tuesday, November 21, 2006

How to restart machine from a terminal session?


write the following in shut.vbs file and double-click it to run.
--
set x=CREATEOBJECT("shell.application")
x.ShutdownWindows()
---
This brings up the Shutdown Windows dialog from which one can choose to Restart, Stand By, Shut Down, etc

0 Comments:

Post a Comment

<< Home