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.
-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,
– change the setting to Do nothing,
– save changes.