Disabling Power and Sleep buttons is a simple task and here is how you can do it on Laptop (In this instance, I am using laptop running Windows 10):
Disable Power and Sleep Buttons on Laptop
That is all. Both the buttons are disabled and will not do any action from now on.
You can enable both these buttons at any time you want by changing the "Do nothing" with any other option in the drop-down lists.
I hope this guide is useful to you. If it is, share with your friends.
How to Disable Power and Sleep Buttons on Laptop