Useful Tips

Creating a computer shutdown button on the Windows 10 desktop

Pin
Send
Share
Send
Send


In Windows 10, 8, and Windows 7, there are different ways to turn off and restart the computer, the most commonly used among which is the “Shut Down” option in the Start menu. However, many users prefer to create a shortcut to turn off the computer or laptop on their desktop, in the taskbar, or anywhere else in the system. It may also be useful: How to make a computer shutdown timer.

This manual details how to create such shortcuts, not only for shutting down, but also for rebooting, sleeping, or hibernating. Moreover, the steps described are equally suitable and will work properly for all the latest versions of Windows.

Create a desktop shutdown shortcut

In this example, a shutdown shortcut will be created on the Windows 10 desktop, but in the future it can also be fixed on the taskbar or on the start screen - as you prefer.

Right-click in an empty area of ​​the desktop and select "Create" - "Shortcut" in the context menu. As a result, the shortcut creation wizard opens, in which at the first stage you need to specify the location of the object.

Windows has a built-in program shutdown.exe, with which we can both turn off and restart the computer, it with the necessary parameters should be used in the "Object" field of the created shortcut.

  • shutdown -s -t 0 (zero) - to turn off the computer
  • shutdown -r -t 0 - for a shortcut to restart the computer
  • shutdown -l - to exit the system

And finally, for the hibernation shortcut, in the object field, enter the following (not Shutdown): rundll32.exe powrprof.dll, SetSuspendState 0,1,0

After entering the command, click "Next" and enter a name for the shortcut, for example, "Turn off the computer" and click "Finish."

The label is ready, however, it will be reasonable to change its icon so that it more closely matches the action. For this:

  1. Right-click on the created shortcut and select "Properties".
  2. On the Shortcut tab, click Change Icon
  3. You will see a message stating that shutdown does not contain icons and the icons from the file will automatically open Windows System32 shell.dll, among which there is a shutdown icon, and icons that are suitable for actions to enable hibernation or reboot. But if you wish, you can specify your own icon in the .ico format (can be found on the Internet).
  4. Select the desired icon and apply the changes. Done - now your shutdown or reboot shortcut looks as it should.

After that, by clicking on the shortcut with the right mouse button, you can also pin it on the home screen or in the Windows 10 and 8 taskbar, for more convenient access to it by selecting the appropriate context menu item. In Windows 7, to pin a shortcut to the taskbar, just drag it there with the mouse.

19 comments

The mute button label could not be created. The computer cannot find shutdown.exe / s / t 10

Try like this
shutdown -s -t 10
By the way, in your case, the spaces have disappeared somewhere, the correct option
shutdown.exe / s / t 10

please tell me, but how to display this button on the lock screen? when I select "location" the window of the whole computer opens and it is offered to indicate the place itself. But what exactly needs to be chosen so that the shortcut appears on the lock screen?

I can not tell you about your question

Thank you, I just would like such a button, with three choices - sleep mode, reboot, shutdown. Perhaps such a make?

Hmm, strange, my button was created, but it does not turn off the computer, but simply reboots.

So the ball reload command entered. They have a difference in one letter.

Thank you, everything is clear and understandable!

On Windows 10, nifiga didn’t help .. as the screen hangs and the screen hangs .. and the mouse turns black.

What didn’t help? Can be more

everything works fine, but I had to create two shortcuts separately. To shutdown and to reboot.

At first I entered it myself. and didn’t find .. then I took it copied as you wrote, pasted it and everything went fine further, made 2 shortcuts off. and restart the computer .. works fine. THANKS .. I really liked

By the way, I did everything on Windows 10-ke

10 for someone freezes when shutting down, edit the registry .. I need to create three parameters ... it helped me .... it turns off fine now ... otherwise it’s not what it was ..

Time after which the program is considered to be frozen
Sometimes the program freezes, i.e. does not respond to appeal to her. You have to force close it (for example, through the Task Manager (Ctr-Shift-Esc)):
The HungAppTimeout key in the HKEY_CURRENT_USER Control Panel Desktop section determines the time after which the non-responding application is considered to be frozen (by default 5000 milliseconds). Change this string parameter to the required value

Timeout before shutting down a hung application
The WaitToKillAppTimeout key in the HKEY_CURRENT_USER Control Panel Desktop section sets the time to wait before the hung application terminates (the default is 2000 milliseconds). Change this string parameter to the required value

Automatically terminate hung programs
You can allow the system to automatically terminate hung processes. To do this, use the string parameter AutoEndTasks in the HKEY_CURRENT_USER Control Panel Desktop section
A value of 1 allows the system to automatically terminate processes
Value "2" - processes do not end automatically. The system waits for the process to terminate, and if the process termination time exceeds the HungAppTimeout value (see above), the Shutdown dialog box appears, indicating that the application has frozen

Notes
If you set too small values ​​in these keys, you may experience problems with the completion of running tasks, because the application may not respond to requests for a long time if the processor is sufficiently busy or when working with other programs

If, for some reason, the AutoEndTasks parameter does not appear in the Desktop subsection, it will need to be created manually, and then set to 1. This activates the automatic termination of processes, however, it doesn’t turn off messages about forced shutdown, although the system will successfully complete its work after a certain time.

You can find out exactly how long this delay is by looking at the value of the WaitToKillAppTimeout parameter located in the same registry branch. On Windows 7, it usually equals 10,000 milliseconds; on Windows 8, its value can be 20,000 milliseconds. By changing this value, you can adjust the duration of the message forcing completion.

which on x .. button to turn off. you need to kill the processes only then the system will shut down ... ... and the / f parameter does not want to work in the top ten for this command ... it will also hang when shutting down, you need to dig deeper ... you need to look in the registry where these parameters are for the completion of the processes when shutting down. like HungAppTimeout..or AutoEndTasks. I tried to enter the parameters like 7 by 10 .... the system turns off .. but the windows of the open applications start to twitch .... the special one who is strong in this is needed. and on the internet they’re rewriting the same article! but it doesn’t help!

Everything works, thank you very much, those who don’t succeed, you’re dumb, there’s nowhere easier ...

everything is working !! and who doesn’t, so be careful and everything will be OK !!

How to create a shortcut to turn off the computer?

  1. Click on the PCM desktop - Create - Shortcut.
  2. A new window will open where you need to specify the location of the object. Write shutdown -s -t 0 here. Be sure to put spaces between words, otherwise the shortcut will not work (or just copy this line).
  3. Type a name (for example, “Shutting down the laptop”) and click the “Finish” button.

That's all. Label successfully created.

Since it does not look very good, you can change the icon. For this:

  1. Highlight a shortcut, click RMB and go to "Properties".
  2. Click Change Icon.
  3. Select any icon, click OK, and then Apply.

Now the PC shutdown shortcut looks prettier, right? For convenience, you can select it, click RMB and pin it in the Start panel or in the taskbar. In Windows 8 and 10, you can also pin it to the home screen.

How to make a reboot shortcut?

If you need to frequently restart your PC or laptop, you can make a reboot button on the desktop, taskbar or home screen. The principle of operation is the same, only the team is slightly different.

So, to make a reboot shortcut:

  1. Create it.
  2. Write shutdown -r -t 0 (do not forget about spaces).
  3. Specify a name (for example, “Reboot the laptop”) and click Finish.

Then again, you can change the icon to make the reboot shortcut on the desktop look more presentable.

Hibernation button on the desktop

If you need a hibernation shortcut then:

  1. Create it as a slave. the table.
  2. Type the following command - rundll32.exe powrprof.dll, SetSuspendState 0,1,0 (better copy).
  3. Write any name.

How to create a shortcut?

To get started, general introductory information on how to create a shortcut:

  1. We get to the desktop and in the free space we right-click
  2. From the context menu, select "Create", and in it the sub-item "Shortcut".
  3. After you will see a window for creation, as in the figure below. In the line "Location of the object" enter the address of the desired application, program or website.
    In our case, try the website address:
    https://wd-x.ru/
  4. Then click the “Next” button. The next step will be to assign the name of the label, enter it in the line and to continue “Done”.
  5. After you will have created a shortcut, which will be among the desktop icons. Such a shortcut is launched just like other programs on your computer - by double-clicking or by pressing the Enter key.

Once you understand the principle of creating shortcuts on the desktop, it remains to put the knowledge into practice. The following are five possible shortcuts for operating system management:

5. Create a sleep mode shortcut

  • Object location: C: Windows System32 rundll32.exe powrprof.dll, SetSuspendState Sleep
  • Label Name: Sleep

In the future, for the shortcut, you can apply quick call, which we managed to talk about in a previous article. I think you will not have any problems with assigning a keyboard shortcut for the created shortcut after reading the article.

Instead of an afterword

If due to some circumstances you did not manage to create a shortcut yourself, then you can download archive with ready-made labels in the amount of five pieces.

Also in the future, if you want to refine the created labels, you can apply for each individual image, which will be displayed with an icon. To do this, in the properties of the label there is a button “Change Icon”, which you can see in the figure above.

Pin
Send
Share
Send
Send