This worklet lets you change the power scheme to one of the defaults:
- Balanced
- High Performance
- Power Saver
There’s no evaluation code and the remediation code just changes the setting to whatever you specify in the code:
$p = gwmi -NS root\cimv2\power -Class win32_PowerPlan -Filter "ElementName ='Power Saver'"
$p.Activate()
Change ElementName between any of the three built-in defaults: Balanced, High Performance, or Power Saver. If you have any other power schemes saved then you can call them by name as well.