Hacking Tips & Tricks | Ever Eager | Amin Jariwala

Wednesday 6 April 2011

How to Create A Shutodown Icon On Desktop

Right click on your desktop and select new > shortcut.
In dialog box type “shutdown –s”, click next to continue and then type a name for shortcut and click finish.
You can add below parameters:
shutdown [{-l|-s|-r|-a}] [-f] [-m [\\ComputerName]]
-l >> Logs off the current user
-s >> Shut Down the local computer
-r >> Reboots after shutdown
-a >> Aborts shutdown. Ignores other parameters, except -l and Computer Name
-f >> Forces running applications to close.
-m [\\ComputerName] >> computer name

To create a suspend icon, type “rundll32.exe PowrProf.dll, SetSuspendState”

No comments:

Post a Comment