How to Add Shutdown / Restart / Sleep to the Windows 8 Metro Start Screen



00_new_tiles_on_start_screen

If you have installed the Developer Preview of Windows 8, you probably have discovered the rather obscure method of shutting down the system. There is an easier way of shutting down, restarting, sleeping, and hibernating your computer. You can add tiles to the Windows 8 Metro Start screen that allow you to perform these tasks with one click.
To begin, click the Desktop tile on the Start screen to access the Desktop.
Right-click on the Desktop and select New | Shortcut from the popup menu.
Enter the following command in the Type the location of the item edit box and click Next.
shutdown.exe -s -t 00
Enter a name for the shortcut in the Type a name for this shortcut edit box and click Finish.
The default icon is not very representative of what the shortcut does, so let’s change it. To do so, right-click on the shortcut and select Properties.
The Shortcut tab on the Properties dialog box displays. Click Change Icon.
Because the shutdown.exe program you specified has no icons associated with it, the following message displays. Click OK.
By default, the icons in the shell32.dll file display. You can use the Browse button to select another .exe, .dll, or .ico file, but the shell32.exe file has many icons available. We selected a power symbol icon. Click OK once you have selected your icon.
The selected icon displays on the Properties dialog box. Click OK on the dialog box to close it.
The shortcut has to be copied to another directory to be available on the Start screen, so, copy the shortcut on the desktop.
Paste the shortcut into the following directory:
C:\ProgramData\Microsoft\Windows\Start Menu\Programs
You can either copy the path above and paste it into the address bar in Explorer or you can navigate to the directory. If you can see the ProgramData directory, see the note below.
NOTE: The ProgramData directory is a hidden directory. To gain access to it, click the Hidden items check box in the Show/hide group on the View tab.
Paste the shortcut into the specified directory. You will probably see the following dialog box when you try to paste the file. Click Continue to give permission to paste the file into the directory.
You should see a Shut down tile on the Start screen. One click on this tile will shut down your system.
If you don’t see the Shut down tile on the Start screen, you can search for it and pin it to the Start screen. To find the shortcut, move your mouse over the Start icon in the lower, left corner on the desktop to display the Start menu. Select Search.
NOTE: If you are using a touch screen, you can swipe from the right side of the screen to the left to access the Start menu.
NOTE: You can also access the Start menu in the same way on the Metro Start screen.
The Search panel displays on the right side of the screen. Scroll down and select Apps from the list. Enter “shut down” (or the name you gave your shortcut) in the Search Apps edit box. Press Enter or click the magnifying glass.
The Shut down shortcut displays on the left side of the screen. Right-click the shortcut. The options for the shortcut display in the lower, right corner of the desktop (instead of on a popup menu, like in Windows 7, and earlier). Click the Pin icon. You should now see the Shut down tile on the Start screen.
NOTE: Press Escape to exit the search and go back to the desktop.
To add tiles for Restart, Lock Workstation, Hibernate, and Sleep, enter the following commands create new shortcuts and enter the following commands on the first screen of the Shortcut wizard.
  • Restart Computer: shutdown.exe -r -t 00
  • Lock Workstation: rundll32.exe user32.dll,LockWorkStation
  • Hibernate Computer: rundll32.exe powrProf.dll,SetSuspendState
  • Sleep Computer: rundll32.exe powrprof.dll,SetSuspendState 0,1,0
The rundll32.exe file does have an icon available; however, you may want to change it. Use the Browse button to access a file with more icons. The shell32.dll file is located in C:\Windows\System32.
NOTE: For the Hibernate and Sleep options, make sure that the hardware in your computer support these options and that they are enabled.