Shut down Windows with Alt-F4 – Change default settings

Share on facebook
Share on twitter
Share on linkedin
Share on reddit
Share on email
Share on whatsapp

Surely it may be that, on occasion, we have wondered how we can configure the “Close Windows” window that appears once we press the keyboard shortcut Alt + F4, so that instead of “Shut down” some of the other ones appear by default. options that we have available within its drop-down menu. This is something that can be done directly from Windows 10, although making these changes is not something that is intuitive or easily accessible. And it is that to make these changes, we must do it either from the Registry Editor or using the Group Policy Editor.

What is the keyboard shortcut Alt + F4 for?

In general, when we press the keyboard shortcut Alt + F4, a new window should appear asking us, What do you want your team to do? By default we find the option to “Turn off”, but if we display the tab we can find other options such as “Change user”, “Close session”, “Suspend”, “Hibernate” or “Restart”. In this way we can access any of these functions quickly, making it one of the most used by users.

Likewise, Windows 10 has the possibility of configuring the keyboard shortcut Alt + F4 so that the option to “Turn off” does not appear by default, being able to choose between other options so that it appears first and we do not have to display the list. In this way we can configure it so that «Close session or» Restart »appears in the first place. So we can choose the option that we use most frequently. To do this, this tutorial shows us how we will be able to change the default action in the Alt + F4 dialog box for both specific users and all Windows 10 users.

Change default shutdown options on Alt + F4

To change the shutdown options of the Alt + F4 shortcut we will be able to use two different ways. On the one hand, we can choose to make modifications to the Windows 10 Registry or choose to use the Group Policy Editor.

Using the Windows 10 Registry

The first of the methods we must use the Registry Editor, something that we must do very carefully, since a wrong step can cause system stability problems. Therefore, the first thing we are going to do is press the keyboard shortcut “Windows + R”, so that the Run dialog box does not appear. Later we write “regedir” and press Enter.

In this way we access the Windows 10 Registry Editor. Here we must navigate to the following path:

HKEY_CURRENT_USER / Software / Microsoft / Windows / CurrentVersion / Explorer / Advanced

Once we have located on this path, we right click on the «Advanced» folder and a small menu will appear where we will select «New» and «DWORD Value (32 bits)».

New registry editor and DWORD value

We are going to name this new value «Start_PowerButtonAction»And will take care of the default action in the Shutdown dialog box. Later we double click on this new DWORD value that we have created, and enter the value 2 so that “Shutdown” is the default action. If we want to use another option as default we must set the following values:

  • Restart: 4
  • Change user: 256
  • Sign off: 1
  • To sleep: 16
  • Hibernate: 64

Edit Start_PowerButtonAction value

Once the value corresponding to the action we want to execute has been established, just click “OK” and restart the computer for the changes to be applied. In the event that we want to delete the changes made and return to the default method, we must go back to the path and delete the file “Start_PowerButtonAction”. To do this, just click on it with the right mouse button and click on «Delete».

Using Group Policy Editor

The Windows 10 Group Policy Editor is an excellent way for us to customize any software installed on our computer. In this way, system administrators can use it to customize PC settings. If we want to change the default shutdown options of Alt + F4 we must follow the following steps.

The first thing we need to do is access the Local Group Policy Editor. To do this, we must press to write “edit group policy” in the search box of the Start menu and select the option that appears. Once open, we go to the left panel and go to the “User Configuration” section and expand the list of “Administrative Templates”.

Local Group Policy Editor Administrative Templates

Next, we double click on the folder «Start Menu and Taskbar». Now, on the right side within the options that appear within «Configuration» we must navigate until we find the option «Change the start menu on / off button«. From here we can establish a default action for the Start menu on / off button. To do this we must click on “Policy settings”.

Change the start and shutdown button of the start menu

We see how a new window appears where we must click on the Enabled option. Once this is done, we will see how the option “Choose one of the following options” is enabled in the Options box. Here we choose the default option that we want to set by displaying the tab. We will find the options of:

  • To turn off
  • Lay off
  • Log out
  • To block
  • Restart
  • Change user
  • Hibernate

Enable boot menu on / off option

Once the preferred option has been selected, click on “Apply” and “OK” so that the changes are saved. Finally, we restart the system so that the changes are applied and in this way we have been able to change the default action of the Alt + F4 dialog box. In case we regret it and want to return to the default action, we will only have to go back through the same steps and select the “Not configured” option.