Create a shortcut to open Windows Shut Down Dialog Box in Windows 7 | 8

We have already seen 10 different ways to shut down or restart Windows 8. One of them is by pressing the Alt+F4 combination to bring up the Windows Shut down Dialog box. However this is not as convenient as it looks, as if you have lots of programs open on your computer, it takes time. In such cases, Alt+F4 first closes each programs separately and we get the following prompt after ensuring every program is closed.

Windows 8 Shutdown Quick Launch 4 Create a shortcut to open Windows Shut Down Dialog Box in Windows 7 | 8

Create a shortcut to open Windows Shut down Dialog Box

In this article, I’ll you the simple way to bring the shut down prompt instantaneously, by creating a shortcut to open Windows Shut down Dialog Box – and optionally ‘pinning‘  it to the system tray.

1. Open Notepad and type following string:

(new ActiveXObject(“Shell.Application”)).ShutdownWindows();

2. Save this file with any name you like but provide it the .js format as mandatory for example Shutdown.js and pick All files as save as type. Save it to any location but create its shortcut to Desktop.

3. Right click on task bar and move to Toolbars -> New toolbar.

Windows 8 Shutdown Quick Launch 1 Create a shortcut to open Windows Shut Down Dialog Box in Windows 7 | 8

4. In the New Toolbar – Choose a folder window, input following location for Folder:

%UserProfile%\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch

Windows 8 Shutdown Quick Launch 2 Create a shortcut to open Windows Shut Down Dialog Box in Windows 7 | 8

Then click on Select Folder and Quick Launch will be added to Windows 8 task bar.

5. Now go to Desktop and drag the shortcut created in step 1 in Quick Launch bar, until Link appears in pop-up, and then drop it. It will create a shortcut inside the Quick Launch menu.

Windows 8 Shutdown Quick Launch 5 Create a shortcut to open Windows Shut Down Dialog Box in Windows 7 | 8

6. That’s it. Now the shutdown shortcut is added as shortcut itself in the Quick Launch menu. At this stage you can delete the Desktop shortcut used in previous step. You can rename it simply Shutdown or whatever you like by right-click -> Rename.

Windows 8 Shutdown Quick Launch 3 Create a shortcut to open Windows Shut Down Dialog Box in Windows 7 | 8

So in case you have to bring power options, just click in Quick Launch bar and pick Shutdown and you’ll got the Alt+F4 menu directly. If you click anywhere on-screen besides this shut down prompt, it just disappears.

While it will work in Windows 7, Windows Vista, Windows XP and earlier too, Windows 8 users may find it more useful to use it as they will now have another way to shut down their computer from the notification area, apart from using HotShut.

Posted by on , in Category Windows with Tags
An Electrical Engineer by profession, Kapil is a Microsoft MVP in Windows - Consumer and a Microsoft Content Creator. He recommends that you create a system restore point first before tweaking the registry.
  • PMS Witch

    If one cuts and pastes the .JS code as given, they’ll encounter an error because the double quote characters should be plain text. (ASCII 34)

    Thankfully, it’s easy to fix.

  • http://www.kapilarya.com/ Kapil Arya

    ^^ Thanks for noticing :)

  • JONATHAN_NGUYENDINH

    (new ActiveXObject(“Shell.Application”)).ShutdownWindows();

  • jdspro

    I cannot figure out whre to download it

  • Otis68

    Kapila may be a huge fan of Microsoft but he should return to H.S. for sentence structure etc.. Article about Surface being possibly ‘better’ than iPad includes several 9th grade english errors. The phrase ‘it has’ contracts to ‘it’s’, NOT its as he wrote..

  • David BalaĹžic

    “However this is not as convenient as it looks, as if you have lots of programs open on your computer, it takes time”
    This is not true. If desktop has focus then alt-F4 brings up the shutdown dialog.
    You can either click first on the desktop and press alt-F4 or press WIN-D then alt-F4.

  • daneyuleb

    This js script works on Windows 8 about 70% of the time. Many times, however, it doesn’t work–just does nothing, even with repeated launches. It’s like its hanging behind the scenes. Wonder if it’s a timing issue of some sort?

  • Piotr Polley

    Run Sleep PC in Windows 8:

    SleepComp.vbs
    ————————————–
    Dim objShell
    Set objShell = CreateObject(“Shell.Application”)
    objShell.ShutdownWindows
    set objShell = nothing
    Set WshShell = CreateObject(“WScript.Shell”)
    With objShell
    WScript.Sleep 200
    WshShell.AppActivate “Shut Down Windows”
    WshShell.SendKeys “ss”
    WshShell.SendKeys “{TAB}”
    WshShell.SendKeys “{Enter}”
    End With
    Set objShell=Nothing
    ————————

  • Guest

    Hi! How can I fix it?
    Please

  • Recent Comments