Home> Common Problem> body text

How to disable the power button to prevent users from shutting down on Windows 11 or 10

PHPz
Release: 2023-04-21 18:22:09
forward
2398 people have browsed it

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!

如何移除电源按钮以防止用户在 Windows 11 或 10 上关机

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.

Remove the Power Button from the Start Menu

Step 1: Press theWin Rkeys simultaneously to open theRunwindow . Typeregeditand pressEnterto startRegistry Editor.

如何移除电源按钮以防止用户在 Windows 11 或 10 上关机

Step 2: In the Registry EditorNavigationbarcopy and Paste thefollowingpositionand pressEnter.

计算机\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer
Copy after login

After that,right-click theResourcesManagerfolder, click theNewoption, and then clickDWORD(32 bit) valueoption.

如何移除电源按钮以防止用户在 Windows 11 或 10 上关机

Step 3:Click on thenewly createdDWORD valueand pressF2KeyRenameit. Give the new nameNoClose.

Double-click theNoClose DWORD and set theValuedatafield to1. Click theOKbutton when finished.

如何移除电源按钮以防止用户在 Windows 11 或 10 上关机

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!

如何移除电源按钮以防止用户在 Windows 11 或 10 上关机

#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!

source:yundongfang.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!