Saturday, July 16, 2011

Create Icon in Desktop to Shutdown, Restart, Hibermate, and Log Off

Here is the script to make an icon represent shutdown, restart, etc:

Firstly, you must create a shortcut of Shutdown.exe located in %Windir%\System32\Shutdown.exe in desktop (Use search box if you don't find it).

Then, right-click the shortcut and properties. In Shortcut tab, add this parameter:
-l -t 0 : to log off
-s -t 0 : to shutdown
-r -t 0 : to restart
-h -t 0 : to hibernate (may be not available in all computer)


Post a Comment

Back to top!