One-Click Shutdown & Restart for Windows 8
In this article
You can shut down or restart Windows 8 with a single click by creating a desktop shortcut that runs the built-in shutdown.exe command with the right switches. Double-click the shortcut and the PC powers off or reboots immediately. The same approach works for a tile on the Start screen, so you can tap once instead of digging through the Charms bar. Nothing extra needs to be installed: the command is part of Windows, and the only requirement is that you can create a shortcut on the desktop or pin it to Start. Menu labels can differ slightly by Windows 8 edition, region and whether you are on 8 or 8.1, but the shortcut method is the same.
What You'll Need
- A Windows 8 or 8.1 PC you can sign in to with an account that is allowed to shut down the computer (standard user accounts can usually shut down; restart may require admin rights on some managed PCs).
- Access to the desktop, so you can right-click and create a shortcut.
- About two minutes to create and test the shortcut.
- Optional: a Start screen tile if you prefer tapping over double-clicking.
Step-by-Step
- Go to the desktop. Press Windows+D or click the Desktop tile on the Start screen.
- Create a new shortcut. Right-click an empty area of the desktop, then choose New > Shortcut. The Create Shortcut wizard opens.
- Enter the shutdown command. In the location box, type exactly:
shutdown.exe /s /t 0
This means shut down (/s) with zero seconds delay (/t 0). For a restart shortcut, use:shutdown.exe /r /t 0 - Name the shortcut. Click Next, type a clear name such as Shut Down or Restart, then click Finish.
- Test it. Double-click the new shortcut. Windows should begin shutting down or restarting within a second or two. If a confirmation prompt appears, that is normal on some configurations; click Shut down or Restart.
- Optional: give it a nicer icon. Right-click the shortcut, choose Properties > Change Icon, and pick a power or restart symbol from the list. Click OK to save.
- Optional: pin it to Start. Right-click the shortcut and choose Pin to Start. The tile appears on the Start screen, so you can tap it once instead of opening the Charms bar.
- Optional: pin to the taskbar. Right-click the shortcut and choose Pin to Taskbar if you want a one-click button always visible on the desktop.
Common Mistakes
- Forgetting the space before the switch.
shutdown.exe/swill not run. Keep a space betweenshutdown.exeand/s. - Using the wrong switch.
/sshuts down,/rrestarts, and/lsigns out. Mixing them up gives the wrong action. - Leaving out
/t 0. Without it, Windows may wait before acting, which feels like the shortcut did nothing. - Typing the command into the wrong box. It must go in the shortcut location field, not in a document or the Run dialog alone.
- Expecting it to work on a locked or signed-out PC. The shortcut runs only after you sign in.
- Creating it on a network share. Shortcuts on mapped drives can fail if the drive is unavailable. Keep it on the desktop or Start menu.
Tips
- Create two separate shortcuts, one for shutdown and one for restart, and name them clearly so you do not click the wrong one.
- Add
/fonly if you understand it forces open apps to close without saving. For everyday use, leave it out so apps can prompt you to save. - If you share the PC, put the shortcuts in a folder rather than the taskbar to avoid accidental clicks.
- You can also create the shortcut from the Start screen by right-clicking an empty area and choosing All apps (or the equivalent in your edition), then finding the shortcut after pinning it.
- Keep the command simple. Adding extra switches you do not need makes the shortcut harder to troubleshoot.
Troubleshooting
- The shortcut opens and closes a black window but nothing happens. Check the command for typos, especially the space after
shutdown.exe. Recreate the shortcut if needed. - You see an access denied message. Your account may not have permission to shut down or restart. Sign in with an administrator account, or ask the PC's administrator to allow it.
- Windows asks for confirmation every time. That is a policy setting on some PCs. If you cannot change it, click the confirmation button; the shortcut still works in one click plus one confirmation.
- The PC restarts instead of shutting down. You likely used
/rinstead of/s. Edit the shortcut and correct the switch. - The shortcut disappears after a restart. It was probably saved to a temporary location. Recreate it on the desktop and pin it again.
- Nothing happens when you double-click. Right-click the shortcut, choose Properties, and confirm the target starts with
shutdown.exe. Also check that the file is not blocked: right-click, choose Properties, and look for an Unblock button.
Frequently Asked Questions
Can I make a single shortcut that both shuts down and restarts?
No. A shortcut runs one command. Create two shortcuts, one with /s and one with /r.
Does this work on Windows 8.1 as well as Windows 8?
Yes. The shutdown.exe command and the shortcut method are the same on both editions.
Will the shortcut close my open programs without saving?
Not by default. Without /f, Windows lets open apps prompt you to save. Adding /f forces them closed and can lose unsaved work.
Can I put the shortcut on the Start screen instead of the desktop?
Yes. Right-click the shortcut and choose Pin to Start. The tile then appears on the Start screen.
Why does the shortcut ask for confirmation?
Some PCs are configured to confirm shutdowns. The shortcut still works; you just click the confirmation button.
Can I use this shortcut on a locked PC?
No. The shortcut runs only after you sign in. A locked or signed-out PC must be shut down from the sign-in screen or with the physical power button.