How do you create a shortcut to shut down your PC from the desktop

How do you create a shortcut to shut down your PC from the desktop?

Turning off your PC with a single click can be particularly useful, whether to save time or automate certain tasks. Rather than using the Start menu or a keyboard shortcut, you can create a shortcut directly on the desktop that will instantly shut down your computer. This quick and easy method lets you execute the shutdown command with a single click, without any additional navigation.

How do you create a shortcut to shut down your PC from the desktop?

Create a desktop shortcut to shut down your PC

A desktop shortcut to instantly shut down your computer can be very useful, whether to simplify the shutdown process or automate certain actions. This step-by-step guide shows you how to create such a shortcut in Windows.

Right-click on an empty space on your desktop.

Select New then Shortcut.

In the window that opens, a field entitled “Enter element location” appears.

Create Shutdown Shortcut Button on Desktop

Enter the following command:

shutdown -s -t 0
  • shutdown: command for managing PC shutdown and restart.
  • -s: indicates that the computer should shut down.
  • -t 0: means immediate stop (0 seconds delay).

Click on Next.

Give your shortcut a name, e.g. Shut down PC.

desktop shortcut shutdown windows
Name the shortcut to shut down your PC.

Click on Finish.

Customize the shortcut icon to shut down your PC from the desktop

By default, the shortcut will use a standard icon. To make it more recognizable :

Right-click on the newly created shortcut.

Select Properties.

Change Desktop Shortcut Icon

Click on Change icon in the Shortcut tab.

A warning window may appear, click OK.

warning no shortcut icons
Windows warns you that this application contains no icons.

Choose a suitable icon (for example, a stop icon) or import your own .ico file.

Apply Icon to Shutdown Shortcut

Click OK, then Apply to validate changes.

Find out why you shouldn’t leave your PC on at night.

Does the desktop shutdown shortcut work on all versions of Windows?

The desktop shutdown shortcut works on Windows 11, 10, 8 and 7 with the command shutdown -s -t 0. However, administrative restrictions or Quick Start may affect its operation. To get around this, run the command in administrator mode or use PowerShell(Stop-Computer -Force).

About the author

Adrien Piron

I’m Adrien, passionate about technology and specialized in technical support for individuals. My goal is to make technology accessible to everyone.

Be the first to start the discussion!

Protected by Proof-of-Work

Découvrez les articles à la une de la mme thématique

Install Windows 11 without a Microsoft account in 2025
Popular

Install Windows 11 without a Microsoft account in 2025

Find out how to install Windows 11 without a Microsoft account and bypass the login requirement. A practical guide to unrestricted local installation.

Découvrir
Install and activate gpedit.msc Group Policy on Windows 11 Home
Popular

Install and activate gpedit.msc Group Policy on Windows 11 Home

Find out how to activate gpedit.msc on a Windows Home edition, unlock features and customize your system.

Découvrir
Installing and activating Hyper-V on Windows 11 Home with PowerShell

Installing and activating Hyper-V on Windows 11 Home with PowerShell

Find out how to activate Hyper-V on Windows 11/10 Home with PowerShell. Follow our guide to using virtualization without upgrading to Windows Pro.

Hyper-V is a type 1 hypervisor, not a type 2 hypervisor

Hyper-V is a type 1 hypervisor, not a type 2 hypervisor

Hyper-V is often mistaken for a type 2 hypervisor. Find out why it's actually a type 1, integrated into Windows but running on hardware.