Windows – How to Shutdown PC by Pressing Power Button without asking confirmations

resetshutdownwindows 7

I always Hibernate my PC. Sometimes when I boot, it does not recognize the mouse/keyboard or any USB devices. I've also setup it to go in sleep in 5 minutes.

In that case I can't restart the PC so that USB starts working.

When I press the Power button then it starts shutdown but asks confirmation twice, one is for shutdown by force confirmation and then there is one more. When my USB is disabled I can't input these options. So I switch off the power.

What I want is that upon pressing Power Button it should at once start shutdown without asking any more confirmations

System details:
Win-7 Home Premium 64 bit
Intel i3 530
Asus P montherboard

EDIT: It is Desktop PC

Best Answer

You can do it easily just you have to the following steps. Go to the start menu and click on Control Panel now select the Power Option. After this select the Change Plan Settings

enter image description here

Now another window will come over and now you have to select the option Change Advance Power Setting

enter image description here

Now a small window pops up and scroll down to find the option Power Button and Lid and click on + sigh to expand it. Now you will see the option Power button action and clcik the + to expand it.

enter image description here

Now select the option Shut Down for On battery and Plug In and click apply. Now whenever you press the power button computer will shutdown. But still one problem how to power off without force it. Now copy and paste the following keys in notepad and save it with the name of shutdown.reg.

REGEDIT4

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SessionManager\Memory Management]
"ClearPageFileAtShutdown"=dword:00000001 

[HKEY_USERS\.DEFAULT\Control Panel\Desktop]
"AutoEndTasks"="1"  

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control]
"WaitToKillServiceTimeout"="1000" 

After saving it on disk just double click on it to add to registry. Windows will ask you to confirm just press the OK button every time and you are on the way. It will shutdown the windows without asking you to force shutdown.

Note: This will always shut down Windows, even if an application is open with unsaved changes.

Related Question