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 the Win R keys simultaneously to open the Run window . Type regedit and press Enter to start Registry Editor.
Step 2: In the Registry EditorNavigationbarcopy and Paste the following position and press Enter.
计算机\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer
After that, right-click the ResourcesManager folder, click the New option, and then click DWORD(32 bit) value option.
Step 3: Click on the newly created DWORD value and press F2 KeyRenameit. Give the new name NoClose.
Double-click the NoClose DWORD and set the Valuedata field to 1. Click the OK button when finished.
Step 4: That’s it. Right-click the Windows Start menu icon, and then click the Power icon. You will now see a pop-up message No power options currently available. enjoy!
#Please note that power options will be disabled, including on the CTRL ALT DEL screen.
If you want to revert the changes and wish to re-enable the power options, please delete the you created in step 2 ##DWORDValueNoClose. Or in Step 3, instead of setting the Value data to 1, set it to 0 (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!