Skip to content

TechRepublic

  • Top Products Lists
  • Developer
  • 5G
  • Security
  • Cloud
  • Artificial Intelligence
  • Tech & Work
  • Mobility
  • Big Data
  • Innovation
  • Cheat Sheets
  • TechRepublic Academy
  • CES
  • TechRepublic Premium
  • Top Products Lists
  • Developer
  • 5G
  • Security
  • Cloud
  • Artificial Intelligence
  • Tech & Work
  • Mobility
  • Big Data
  • Innovation
  • Cheat Sheets
  • TechRepublic Academy
  • CES
  • See All Topics
  • Sponsored
  • Newsletters
  • Forums
  • Resource Library
TechRepublic Premium
Join / Sign In
Microsoft

Shutdown Windows 8 right from the desktop

By greg shultz December 17, 2012, 5:12 AM PST

Image
1
of 12

Fig_A_12-21.png
Fig_A_12-21.png
Shutdown Windows 8 right from the desktop

The power options

The power options

ntThis gallery is also available as a post in the Windows and Office Blog.

n

ntIn the last couple of blog posts in the Windows and Office Blog, I’ve shown you how to boot Windows 8 straight to the desktop and add a Start button to the taskbar. These two techniques basically allow you to emulate a Windows 7 style interface in Windows 8 without having to use any third-party utilities. As you know, the Start menu in Windows not only provided you with a way to launch your application but also a way to shut down your computer. For example, in Windows 7 there is a Shut down as well as a pop-up menu that displays six other related options: Switch user, Log off, Lock, Restart, Sleep, and Hibernate.

n

ntIn Windows 8, these options are spread out between the Power Charm and the context menu associated with your user picture on the Start screen, as shown in Figure A. Unfortunately, this new arrangement isn’t convenient for everyone. I’ve heard numerous complaints about this as well as requests for the ability to shut down or restart the system to be put back on the desktop.

n

ntCredit: Images by Greg Shultz for TechRepublic

Shutdown Windows 8 right from the desktop

Type the first command from Table A in the text box

Type the first command from Table A in the text box

ntI began investigating this possibility and have found a technique that will allow you to recreate a reasonable facsimile of the Shut down pop-up menu on Windows 8’s desktop. The technique involves creating a series of shortcuts using special commands, saving them to a folder, and then specifying that folder as a taskbar toolbar. Let take a closer look.

n

ntnn

n

ntThe special commands

n

ntAs you may know, Windows comes with a command line utility called Shutdown.exe that, along with special parameters, can be used to create the majority of the options for our Shut down menu. To create the other options we’ll use two other command line utilities: Rundll32.exe and Tsdiscon.exe. These commands and their parameters are shown in Table A.

n

ntTable A

n

nt

ntt

nttt

nttt

ntt

ntt

nttt

nttt

ntt

ntt

nttt

nttt

ntt

ntt

nttt

nttt

ntt

ntt

nttt

nttt

ntt

ntt

nttt

nttt

ntt

ntt

nttt

nttt

ntt

nt

n

ntttt

ntttttMenu option

nttt

ntttt

ntttttCommand

nttt

ntttt

ntttttShut down

nttt

ntttt

ntttttshutdown.exe /s /t 00

nttt

ntttt

ntttttRestart

nttt

ntttt

ntttttshutdown.exe /r /t 00

nttt

ntttt

ntttttLog off

nttt

ntttt

ntttttshutdown.exe /l

nttt

ntttt

ntttttSleep or Hibernate

nttt

ntttt

ntttttrundll32.exe powrprof.dll,SetSuspendState

nttt

ntttt

ntttttLock

nttt

ntttt

ntttttrundll32.exe user32.dll,LockWorkStation

nttt

ntttt

ntttttSwitch user

nttt

ntttt

nttttttsdiscon.exe

nttt

n

ntSleep vs. Hibernate

n

ntThe differences between activating Sleep and Hibernate from the command line in Windows 8 can be tricky, so be aware.

n

ntAs you can see the same command line is used to initiate Sleep and Hibernate. If you have the Hibernate feature enabled, then this command line will put the system into Hibernation mode. If you have the Hibernate feature disabled, then this command line will put the system into Sleep mode.

n

ntKeep in mind that if the Hibernate feature is disabled, then the only power saving option you will have available is Sleep mode. If the Hibernate feature is enabled, then both power saving options, Hibernate and Sleep, will be available – just not both from the command line.

n

ntIf you leave the Hibernate feature enabled, then you can use a shortcut to activate the Hibernation mode and can then activate Sleep mode from the Power Charm or by configuring the power button on the computer to activate Sleep mode. As such, I chose to leave the Hibernate feature enabled.

n

ntNow, if you want to disable or enable the Hibernate feature, you will press [Windows]+X to bring up the Tools menu and then select Command Prompt (Admin). Then, you will use one of the following commands:

n

ntpowercfg -hibernate off

n

ntpowercfg  -hibernate on

n

ntCreating the shortcuts

n

ntIn order to use the taskbar toolbar, you’ll need to create all your shortcuts in a single folder. To make it simple, I created a folder called Shut down and then used Create Shortcut wizard to create my shortcuts in that folder. To do so, just right click on the background and choose the New | Shortcut command. When you see the first screen in the Create Shortcut wizard, type the first command from Table A in the text box, as shown in Figure B.

n

ntCredit: Images by Greg Shultz for TechRepublic

Shutdown Windows 8 right from the desktop

Name this shortcut Shut down

Name this shortcut Shut down

ntIn this command, the /s is the shut down parameter and the /t 00 is the timer parameter which instructs the shut down command to shut down the system in 00 seconds or immediately. Once you type the command, you can click Next. When you see the second screen in the Create Shortcut wizard, type Shut down as shown in Figure C. To complete the wizard, just click Finish.

n

ntCredit: Images by Greg Shultz for TechRepublic

Shutdown Windows 8 right from the desktop

The /r parameter instructs the shutdown command to restart the computer

The /r parameter instructs the shutdown command to restart the computer

ntOnce you create the Shutdown shortcut, you’ll create the Restart shortcut, as shown in Figure D. In this command, the /r is the restart parameter and the /t 00 is the timer parameter which instructs the shut down command to restart the system immediately.

n

ntCredit: Images by Greg Shultz for TechRepublic

Shutdown Windows 8 right from the desktop

The /l parameter instructs the shutdown command to Log off the computer

The /l parameter instructs the shutdown command to Log off the computer

ntYou can then create the Log off shortcut as shown in Figure E. In this command, the /l is the log off parameter.

n

ntCredit: Images by Greg Shultz for TechRepublic

Shutdown Windows 8 right from the desktop

You must use both upper and lower case letters in last part of the Hibernate command

You must use both upper and lower case letters in last part of the Hibernate command

ntYou’ll then create the Hibernate shortcut as shown in Figure F. In this command line, rundll32.exe activates the Power Profile (powerprof.dll) and then launches the default power saving mode (SetSuspendState). Keep in mind that case is important in this last command – you must use both upper and lower case letters.

n

ntCredit: Images by Greg Shultz for TechRepublic

Shutdown Windows 8 right from the desktop

The last part of the Lock command must use both upper and lower case letters

The last part of the Lock command must use both upper and lower case letters

ntYou can now create the Lock shortcut as shown in Figure G. In this command line, rundll32.exe accesses the currently logged on user’s session (user32.dll) and locks the session (LockWorkStation). Again, case is important in the last command.

n

ntCredit: Images by Greg Shultz for TechRepublic

Shutdown Windows 8 right from the desktop

The Switch user shortcut has a simple command

The Switch user shortcut has a simple command

ntThe Switch user shortcut is quite simple, as you can see in Figure H. There is only the tsdiscon.exe command – no parameters.

n

ntCredit: Images by Greg Shultz for TechRepublic

Shutdown Windows 8 right from the desktop

The Shell32.dll file contains a host of icons

The Shell32.dll file contains a host of icons

ntOnce you have created your shortcuts, you can assign each one a unique icon if you wish. To do so, right click on the shortcut icon and select the Properties command. When you see the Properties dialog box, click the Change Icon button to open the Change Icon dialog box. Then, click the Browse button. You can find a host of icons in the Shell32.dll file, as shown in Figure I.

n

ntCredit: Images by Greg Shultz for TechRepublic

Shutdown Windows 8 right from the desktop

Select the New toolbar command

Select the New toolbar command

ntCreating the toolbar

n

ntNow that you have your shortcuts created in the Shut down folder, you can create the toolbar. Right-click on the taskbar and then select the Toolbars | New toolbar command, as shown in Figure J.

n

ntCredit: Images by Greg Shultz for TechRepublic

Shutdown Windows 8 right from the desktop

In the New Toolbar – Choose a folder dialog box, just select the Shutdown folder

In the New Toolbar – Choose a folder dialog box, just select the Shutdown folder

ntWhen you do, you’ll see the New Toolbar u2013 Choose a folder dialog box and will need to locate and select the Shutdown folder, as shown in Figure K.

n

ntCredit: Images by Greg Shultz for TechRepublic

Shutdown Windows 8 right from the desktop

The Shut down menu may work best on the right side of the taskbar

The Shut down menu may work best on the right side of the taskbar

ntYour new Shut down menu will now appear on the right edge of the taskbar, as shown in Figure L. You can leave it there or you can move it to the far left if you want. For me it works best on the right side of the taskbar. Regardless of where you place it, you can now quickly and easily Shut down, Restart, Lock, Log off, Hibernate, or Switch user right from the Windows 8 desktop.

n

ntIf you combine this technique with custom Start button technique and the boot straight to the desktop trick, you’ll basically have a Windows 7 style interface in Windows 8 without having to use any third-party utilities.

n

ntWhat’s your take?

n

ntWhat do you think about creating a Shut down menu on Windows 8’s desktop? Will you try it? As always, if you have comments or information to share about this topic, please take a moment to drop by the TechRepublic Community Forums and let us hear from you.

n

ntAlso read:

n

    nt

  • nttMake Windows 8 boot straight to the desktop
  • nt

  • nttAdd a self-made Start button to the Windows 8 desktop
  • nt

  • nttThe complete guide to a Windows 8 clean installation
  • n

n

ntCredit: Images by Greg Shultz for TechRepublic

  • Microsoft
  • Account Information

    Share with Your Friends

    Shutdown Windows 8 right from the desktop

    Your email has been sent

Share: Shutdown Windows 8 right from the desktop
Image of greg shultz
By greg shultz
My first computer was a Kaypro 16 \"luggable\" running MS-DOS 2.11 which I obtained while studying computer science in 1986. After two years, I discovered that I had a knack for writing documentation and shifted my focus over to technical writing.
  • Account Information

    Contact greg shultz

    Your message has been sent

  • |
  • See all of greg's content

TechRepublic Premium

  • TechRepublic Premium

    Guidelines for building security policies

    PURPOSE These guidelines from TechRepublic Premium will help you define the necessary ingredients of a security policy and assist in its proper construction. They’re designed to work hand in hand with the subjective knowledge you have of your company, environment and employees. Using this information, your business can establish new policies or elaborate on those ...

    Provided By TechRepublic Premium Published:  Mar 2023 Modified:  Mar 2023 Read More
    View This Now
  • TechRepublic Premium

    Hiring kit: Artificial intelligence architect

    PURPOSE Recruiting an Artificial Intelligence Architect with the right combination of technical expertise and experience will require a comprehensive screening process. This Hiring Kit from TechRepublic Premium provides an adjustable framework your business can use to find, recruit and ultimately hire the right person for the job. From the hiring kit: DETERMINING FACTORS, DESIRABLE PERSONALITY ...

    Provided By TechRepublic Premium Published:  Mar 2023 Modified:  Mar 2023 Read More
    Learn More
  • TechRepublic Premium

    Hiring kit: Autonomous systems engineer

    PURPOSE Hiring the right Autonomous Systems Engineer requires a specific and precise recruitment process, supported by a thorough understanding of the project requirements. This Hiring Kit from TechRepublic Premium provides an adjustable framework your business can use to find, recruit and ultimately hire the right person for the job. From the hiring kit: DETERMINING FACTORS, ...

    Provided By TechRepublic Premium Published:  Mar 2023 Modified:  Mar 2023 Read More
    View This Now
  • TechRepublic Premium

    Hiring kit: Application support engineer

    PURPOSE This Hiring Kit: Application Support Engineer from TechRepublic Premium provides an adjustable framework your business can use to find, recruit and ultimately hire the right person for the job. From the hiring kit: DETERMINING FACTORS, DESIRABLE PERSONALITY TRAITS AND SKILLSETS The skillset of successful Application Support Engineers is marked by balancing the technical expertise ...

    Provided By TechRepublic Premium Published:  Mar 2023 Modified:  Mar 2023 Read More
    View This Now

Services

  • About Us
  • Newsletters
  • RSS Feeds
  • Site Map
  • Site Help & Feedback
  • FAQ
  • Advertise
  • Do Not Sell My Information

Explore

  • Downloads
  • TechRepublic Forums
  • Meet the Team
  • TechRepublic Academy
  • TechRepublic Premium
  • Resource Library
  • Photos
  • Videos
  • TechRepublic
  • TechRepublic on Twitter
  • TechRepublic on Facebook
  • TechRepublic on LinkedIn
  • TechRepublic on Flipboard
© 2023 TechnologyAdvice. All rights reserved.
  • Privacy Policy
  • Terms of Use
  • Property of TechnologyAdvice