Windows

Shut down, restart, suspend or hibernate windows with these shortcuts

To turn off the computer, we have always resorted to the start menu. Here are the main options that will allow us, for example, to turn off the PC, restart it, suspend it and, if we have it activated, make use of hibernation. All these options are always at our fingertips with a couple of clicks. However, it is possible to simplify this process much more by creating a shortcut, which we can place on our PC wherever we want, to be able to perform all these tasks simply by double clicking on its icon.

A shortcut to shut down or restart the computer will have, broadly speaking, the same effect as if we use it from the start menu, or from the Alt + F4 window that we can launch in Windows. But, if we want, we can customize it more effectively. For example, we can make a message appear when we execute the shortcut, or a countdown so that the shutdown is not instantaneous.

These shortcuts work in all versions of the operating system, both in Windows 7 and Windows 10. And the process is the same in all of them. Next we will see how they are created.

How to shut down Windows with a simple click

To create this quick shortcut that allows us to turn off the computer, what we must do is right-click on the place where we want to save this access, and choose the New> Direct Access option .

Now, in the wizard that will appear, the first thing we will have to enter is the following command:

C:/Windows/System32/shutdown.exe -s -t 00

We continue with the wizard, and then we will have to indicate the name that we want to give the shortcut. We can change it later, so we will not have problems in this regard.

Once this is done, we will have the direct access created on our PC. If we double click on it, we can turn off the computer.

Restart the PC with a Windows shortcut

If what we want is to create a shortcut to restart the computer, the process is, broadly speaking, the same. What we must change is the command that we must execute from the new quick shortcut. Thus, instead of using the previous one, the one we must introduce is the following:

C:/Windows/System32/shutdown.exe -r -t 00

We will give the shortcut the name we want, to know that it corresponds to the system restart, and that’s it. Double clicking on it will restart your computer. As you can imagine, both this Windows shortcut and others that we will show you in these same lines, will not allow you to use Windows in a more fluid way. Keep in mind that actions such as restarting, shutting down or hibernating Windows is something we carry out on a daily basis.

How to quickly suspend your computer

To suspend the computer is to put it in a state of “low power” so that we can recover it in a moment when we are going to use it. This function is not inside shutdown.exe like the previous commands, but, to execute it, we must execute the following command in the shortcut:

C:/Windows/System32/Rundll32.exe powrprof.dll, SetSuspendState

We give it the name we want to differentiate it, and that’s it. Now, when we double click on this shortcut, the PC will go into hibernation instantly. This is something that, for example, will be of enormous help if we work surrounded by other users and do not want them to see what we do on the PC, or access it if we get up. Thus, thanks to this shortcut we are talking about, we can suspend the operating system completely with a simple mouse click. Later, in order to return to normality to continue working, we will only have to enter the login password of our user.

Direct access that allows us to hibernate Windows

Hibernate is, roughly, like suspend. But the difference is that, instead of being in a low-power state, what Windows does is dump all the RAM to the hard disk and shut down the computer completely. When we go to turn it on again, instead of starting from scratch, it will load the RAM dump and, in an instant, we will have our PC ready to start using it as it was at the time we hibernated it.

We can create a shortcut to this function by executing the following command from the shortcut:

C:/Windows/System32/shutdown.exe -h -t 00

When opening this new file, our PC will go into hibernation.

Parameters to use with shutdown.exe

The commands that we have shown in this article are simple. Its main function is to shut down, restart, suspend or hibernate the computer, without anything else. But if we want to give them a personal touch, we can customize them by adding the following in the shortcut command.

  • -t allows us to specify a countdown to shut down the PC. If the parameter is not used, by default the countdown will be 30 seconds. We can give it a value from 0 seconds to 600 seconds (10 minutes). If we want it to turn off directly, the parameter would be “-t 00”.
  • -c allows us to specify, in quotation marks, a comment that will appear when the shortcut is executed.

We can see the complete list of shutdown.exe parameters in the following link.

Cancel computer shutdown or restart

If we have created the quick access with countdown, and we regret it, we can cancel the shutdown of the equipment. To do this, once the countdown has started, we simply have to open a CMD window and execute the following command in it:

shutdown.exe -a

We can see a message like the following one that will indicate that the computer shutdown process has been canceled.

We can continue using the PC normally, until we click on the shortcut again.

Change the icon to shortcuts

As we can see, the process to create these shortcuts is very simple. But it has a problem, and that is that the command ” shutdown.exe ” does not have an icon associated with it. Therefore, the shortcut will appear with a generic Windows executable icon.

To give it a personal touch, we will have to change the icon ourselves. To do this, we will right-click on the icon and open the properties window. In the new window that we will see, we will be able to see a button called « Change icon «.

We click on this icon and we can see the characteristic section of Windows to change the icon of the shortcut. We can use any of the icons that appear in Windows libraries, or load our own icon created by us or downloaded from the Internet.

When we choose the icon, we apply the changes and that’s it. We must repeat this process for all the shortcuts that we have created. So we can have them much better identified. This is something that will be especially useful if, as happens on so many occasions, we have a desktop full of all kinds of icons. Say that these can call programs, documents or Windows functions.

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button