Below are basic settings that can be configured in the Control pannel > Power Options > Change plan settings > Change advanced power options. This script will automate the process of configuring your power plan. What you type will automatically be updated in the "Output" area.
Desktop users must configure the AC (Mains power) section while safely ignoring the DC (Battery power) section.
Laptop/tablet users must configure the AC (Mains power) and DC (Battery power) sections.
Note: If you are using a desktop and received 6 sequential error messages that say "The power scheme, subgroup, or setting does not exist" you can safely ignore these as they relate to battery levels and actions.