Since not everyone has a keyboard with programmable hot keys, I’ll start with the shortcut method. In the article about integrating a Shut Down menu into the Desktop context menu, I will show you a table containing eight command lines that perform all the options typically associated with terminating an active session.
The Table below shows the eight command line.
Best Pocket Friendly Hosting Plans 99% uptime guarantee. Click to Select Your Perfect Plan
Command | Command line |
Restart | Shutdown -r -f -t 00 |
Shut Down | Shutdown -s -f -t 00 |
Hybrid Shut Down | Shutdown -s -f -t 00 -hybrid |
Sleep | Rundll32.exe powrprof.dll,SetSuspendState Sleep |
Hibernate | Shutdown –h |
Lock | Rundll32 User32.dll,LockWorkStation |
Sign Off | Shutdown –l |
Switch Users | Tsdiscon.exe |
Always press Shift f4 on your keyboard, a pop out dialogue box will display, from the displayed box, select any of the command.