How to create a shortcut to shut down Windows

How to create a shortcut to shut down Windows
How to create a shortcut to shut down Windows
Anonim

You can create a shortcut or launcher that allows you to shut down your computer with the click of a mouse. This can be particularly useful if you are using Windows 8 whose command to activate this function is only accessible after opening several menus. You will also notice that there are several format differences between Windows 8 or 10 and older versions of the operating system.

Steps

Method 1 of 2: In Windows 8 and 10

Make a Shutdown Shortcut in Windows Step 1

Step 1. Open Windows in desktop mode

In Windows 8, you can access this mode by clicking on the desktop tile in the system start screen. You will get the same result by pressing the keys simultaneously. Windows and D. This will bring up your system desktop where you can see some icons.

Make a Shutdown Shortcut in Windows Step 2

Step 2. Create a new desktop shortcut

Right click on the desktop, select New then choose Shortcut. You will see the window for creating shortcuts open.

Make a Shutdown Shortcut in Windows Step 3

Step 3. Enter the command associated with the new shortcut

Come in shutdown / s in the text entry field titled Enter the location of the item. This will result in the creation of a shortcut for a machine shutdown command. This will run by default 30 seconds after you activate it.

  • If you want to choose another execution time, complete the entered instruction with / t XXX where XXX is the number of seconds to wait before the shortcut executes the command you associated it with. If you want to delay your computer shutdown by 45 seconds instead of 30, you will need to enter the command shutdown / s / t 45.
  • Give value 0 at the switch / t will result in making the associated command immediately executable.
Make a Shutdown Shortcut in Windows Step 4

Step 4. Enter a name for your shortcut

It will be named shutdown by default, but you can change this name to whatever you like by typing it into the text entry dialog.

Make a Shutdown Shortcut in Windows Step 5

Step 5. Change the icon for the new shortcut

Windows will assign it a default icon that you can change by double-clicking it and selecting the option Properties. In the tab titled Shortcut, select Change the icon …. You will see a list of icons from which you can choose the one that best symbolizes the command associated with your shortcut.

Make a Shutdown Shortcut in Windows Step 6

Step 6. Add the launcher to the system boot menu

When you have finished creating your shortcut, you can add it to the start menu or to your system's taskbar by right-clicking on it and selecting one of the options Add to start menu Where Add to taskbar. This will result in placing an additional tile on the Windows start menu or a new icon on the taskbar, which you will only have to click to shut down your computer.

Method 2 of 2: In Windows 7, Vista, and XP

Make a Shutdown Shortcut in Windows Step 7

Step 1. Create a new shortcut on your desktop

Right click on your system desktop and select the option New then Shortcut on the menu that will appear.

Make a Shutdown Shortcut in Windows Step 8

Step 2. Associate a command with your shortcut

To do this, copy the command shutdown.exe -s and paste it into the text entry dialog.

  • To create a restart shortcut, replace the flag -s of the order by -r. The resulting instruction will be shutdown.exe -r.
Make a Shutdown Shortcut in Windows Step 9

Step 3. Set the order lead time

If you do not change anything, the command execution time will default to 30 seconds. To change it you need to add the switch -t XXX following the instruction already entered. XXX must be a number that will represent the command execution time expressed in seconds. If you entered shutdown.exe -s -t 45, your computer will shut down after 45 seconds.

  • You can also insert a message to display during the execution of the command. To place a message like Goodbye, add -c "Goodbye", without omitting the quotes, following the command already entered.
Make a Shutdown Shortcut in Windows Step 10

Step 4. Enter a name for your shortcut

Click the button Ended when you are done.

Make a Shutdown Shortcut in Windows Step 11

Step 5. Change the icon for your shortcut

If you prefer a different icon than the one that will be assigned by default to your shortcut, right click on it and select the option Properties in the context menu. Open the tab Shortcut and click the button Change the icon. Select the one that you think is the most appropriate and click on OK to confirm your choice.

Make a Shutdown Shortcut in Windows Step 12

Step 6. Activate the shortcut to shut down your computer

To do this, click on your shortcut icon. This will display a window where you can read the countdown of the time remaining before the start of the shutdown procedure of your computer as well as the message that you will have previously inserted in the command associated with your shortcut. When the time expires, all running programs will close and your machine will shut down.

Advice

  • To shut down your computer before the end of the countdown, open the Windows start menu, click Execute and enter the command shutdown -a in the text entry field. You could also create a shortcut if you want to cancel the wait time before your computer shuts down.
  • The commands shown above close all running programs and perform the standard system shutdown procedure, as implemented by Windows when you shut down a computer using the Start menu or the taskbar.. If you want to cut short the time limit imposed by your shortcut and immediately shut down your PC, use the command shutdown -s -t 00. Do not worry, the applications still open will give you the possibility to save your work which was in progress when you launched this command.
  • If you are a bit of a prankster, you can also use the methods described above to have fun, but be careful not to break any regulations in your workplace, because these kinds of jokes may not be popular with everyone. the world, in particular to the company's IT manager.

Popular by topic