Create a group policy object
Open the Group Policy editing tool and create a new policy object.
Expand Computer Configuration \ Preferences \ Control Panel Settings \ Power Options.
Edit the policy (right click and “Edit”).
Go to: User configuration > Preferences > Control Panel Settings > Power Options
Right click in the window and “Create a Power Plan”
Edit the Power Plan settings
Go through all the options and set them as you need.
Save the Power Plan
Change the Action switch at the top to “Create”, then hit OK.
When you edit the settings next time, you need to change the action field to “Update”, and remember to tick the box to “Set as the active power plan”.