Skip to main content

How do I create shutdown shortcuts in Microsoft Windows 7?

Takeaway: Creating shortcuts to shut down or power down a PC running Microsoft Windows 7 is easy, but it does require specific commands.



One of the most often-requested Microsoft Windows tweaks is for shortcuts that shut down, power down, and restart a Windows session. The procedure for Windows 7 is very similar to that of Vista and XP, but now you can pin those freshly created shortcuts to the Start Menu or the Taskbar or both.

Creating a shortcut

Creating a shortcut should be familiar to almost everyone, but we will walk through the process just for clarity. There are other ways to accomplish this task, but this is my preferred method. First, right-click on a clear spot on the desktop and navigate to New | Shortcut, as shown in Figure A.

Figure A

Navigate the menu to create a new shortcut.
When you click the Shortcut menu item, you will arrive at the input screen shown in Figure B. This is where you will enter the specific command strings to make your new shortcut do what you want it to do.

Figure B

Enter the command for your new shortcut.
For our example, we will enter the specific command that will shut down a Windows PC. Type the following command into the box and then click Next.

Shutdown.exe -s -t 00
 
00 denotes the seconds to wait for closeing the running application..
 
This will close all runing application in a second... 
 
The next screen (Figure C) asks you to name the shortcut. I suggest you name the shortcut to correspond to the action it will perform. In this case, we name it Shutdown.

Figure C

Give it an appropriate name.

New icon

Technically, you could stop here, but I prefer to give these shortcuts an icon that will help me remember what it is that they do. In Windows 7, changing an icon is similar to how you changed icons in previous versions of the operating system.
Right-click on the icon in question to get the context menu shown in Figure D and then navigate to the Properties menu item.

Figure D

Find Properties on the menu.
From the Properties control panel, shown in Figure E, select the Change Icon button.

Figure E

Select Change Icon.
The next screen (Figure F) will show you a list of potential icons. Choose the one you want to use and click the OK button twice.

Figure F

Choose your icon and click OK.
You should now have a new shortcut on your desktop. When you click the shortcut, your PC will shut down, so make sure you save your work before you test it.

Windows 7 features

One of the nice features of Windows 7 is that you can pin your new shortcut to the Start Menu and/or to the Taskbar. I am a big Taskbar user myself so that is where I want to put it. Right-click the shortcut to get the context menu and click the Pin to Taskbar menu item (Figure G).

Figure G

Pin the shortcut.
Once the shortcut is pinned (Figure H), you will always have access to a quick shutdown.

Figure H

Shut down anytime.

Additional shortcuts

There are several shutdown and power down commands that you can make into shortcuts. Creating shortcuts for these commands works exactly the same as our example shutdown shortcut.

Restart Computer

Shutdown.exe -r -t 00

Lock Workstation

Rundll32.exe User32.dll,LockWorkStation

Hibernate Computer

rundll32.exe PowrProf.dll,SetSuspendState

Comments

Popular posts from this blog

Export Internet Explorer Security Zone Information

Internet Explorer assigns a security zone to any website that the user is visiting. Next to the two generic zones Internet (all that are not in another zone), Local Intranet (local sites) are Trusted sites and Restricted Sites. Trusted sites will usually have a lower security level than restricted sites. One could for instance move financial sites or sites from companies like eBay or Amazon into the Trusted sites list. Restricted sites are those that should be accessed with lower permissions. Good for websites that need to be accessed but are not that trusted. If a user accesses the Internet with multiple computers he might want to use the same security zone settings on all of them. The easiest way to do that would be to export the security zones on one computer and export them to all others instead of adding sites to the zones manually on all computers. Internet Explorer is storing the security zone information in the Windows Registry. To export the settings of the currently log

The First 10 People Who Sign up On Facebook

The First 10 People Who Sign up On Facebook 10. Zach Bercu sphotos-b.xx.fbcdn.net “The past eight years have been extraordinary,” Bercu said. A graduate of Emory’s medical school, Bercu spent a year in Israel, where he became fluent in Hebrew. He completed his residency in New York, part of the last intern class at St. Vincent’s, whose “hospital infrastructure crumbled around me,” he remembered of the facility, which closed in 2010. Now a resident at Mount Sinai in radiology, Bercu plans to complete a fellowship in interventional radiology, a form of “micro-surgery.” From his undergraduate years, “whether through Facebook or in person,” Bercu says he “took with me some of the greatest friendships one could have.” 9. Manuel Antonio Aguilar publicogt.com Aguilar calls himself a social entrepreneur “focused on the base o

Shortcut key to align code in eclipse

While learning java or working with java, we may need to copy a code from other source like internet or other files. When we do that the code may looks messy like before. which is not in standard and difficult to work on complex logics. Below key is useful to align the messy code:       Ctrl + Shift + F:   Formats a selected block of code or a whole source file.  Format messy code to Java-standard code.  If a code block is not selected, Eclipse applies formatting for the whole file. #shortcut key to align code in eclipse #shortcut_key_to_align_code_in_eclipse #shortcut_key_to_format_code_in_eclipse #shortCut key to format code in eclipse #shortcut_key_to_code_ alignment_in_eclipse #Auto- Alignment Shortcut Key  in  Eclips e