Skip to main content

Power Plan - Enable

Summary

This script is an Automate implementation of the agnostic script Agnostic - Enable-PowerPlan, which can be utilized to mark an existing Power Plan as active.

  • File Path: C:/ProgramData/_Automation/script/Enable-PowerPlan/Enable-PowerPlan.ps1
  • File Hash (Sha256): 13F38A3CB96BE9C19B38ED09A1175852B33713DE43368B84867A7999D202F6F3
  • File Hash (MD5): 59BB9E9FB16FD5E53EB657D0F02ED9A8

Sample Run

Sample Run

Note:

  • Ensure that the name of the PowerPlan matches exactly with the Power Plan column in the Power Plan - Audit [Script] dataview.
  • After executing the script, changes made at the endpoint can be validated by checking the Is Active column for the respective Power Plan in the Power Plan - Audit [Script] dataview. This column indicates whether the Power Plan has been successfully marked as active/enabled.

Dependencies

Variables

NameDescription
ProjectNameEnable-PowerPlan
WorkingDirectoryC:/ProgramData/_Automation/Script/Enable-PowerPlan

User Parameters

NameExampleRequiredDescription
PowerPlanBalancedTrueName of the Power Plan to enable/activate

Output

  • Script Log
  • Dataview