How to disable Windows Hardware Power Button

Power Options is a setting in the Windows Control Panel, under the Hardware and Sound category. It allows the user to adjust their power plan and power settings on their computer. With this method, users are unable to turn off the device when using Assigned Access or Shell Launcher, etc. This applies to physical devices only and below are the steps to achieve this. Please refer to the following guides for related articles. Pre-requisites for setting up a Single and Multi App Kiosk, and how to disable the sleep mode in Windows 10 to never turn off the display.
Also, see how to disable power plan in Windows via GPO and Windows Settings, and “Windows 11 Hardware and Software Requirements: Upgrade to Windows 11. Here is how to prevent users from shutting down in a Virtual Machine.
How to disable Windows Hardware Power Button
Access the Power Options via Control Panel, Hardware and Sound, Power option and edit Plan Settings as shown below.

Choose what the power button does, and change the setting to Do nothing. Lastly, “save changes“..
I hope you found this blog post on How to disable Windows Hardware Power Button helpful. Please let me know in the comment session if you have any questions.