Every time your computer needs to go to sleep, shut down, hibernate, or restart, you need the power button option. Without them, you'd be in trouble. What if we told you that you could give your coworker or friend a heart attack by disabling his/her power button option? What if "No power options are currently available" message is displayed when he/she clicks the power button? Well, your friend does freak out. Indeed, seeing this will make you burst into laughter.
In this article, we detail how to easily disable or enable the power button option in your Windows computer with a small registry hack in simple steps. Hope you enjoyed reading this article!
Please note that the method described in this article involves changing your registry settings. Incorrect registry settings can cause serious problems for your computer, so it is always recommended that you back up your registry settings before proceeding. If something goes wrong, you can always use this backup to restore previous registry settings.
Step 1: Press theWin Rkeys simultaneously to open theRunwindow . Typeregeditand pressEnterto startRegistry Editor.
Step 2: In the Registry EditorNavigationbarcopy and Paste thefollowingpositionand pressEnter.
计算机\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer
After that,right-click theResourcesManagerfolder, click theNewoption, and then clickDWORD(32 bit) valueoption.
Step 3:Click on thenewly createdDWORD valueand pressF2KeyRenameit. Give the new nameNoClose.
Double-click theNoClose DWORD and set theValuedatafield to1. Click theOKbutton when finished.
Step 4: That’s it. Right-click theWindows Startmenu icon, and then click thePowericon. You will now see a pop-up messageNo power options currently available. enjoy!
#Please note that power options will be disabled, including on the CTRL ALT DEL screen.
If you want torevert thechanges and wish to re-enable the power options, pleasedelete theyou created instep 2##DWORDValueNoClose. Or inStep 3, instead of setting theValue datato 1, set it to0 (zero)to enable the power option.
The above is the detailed content of How to disable the power button to prevent users from shutting down on Windows 11 or 10. For more information, please follow other related articles on the PHP Chinese website!