Skip to main content

Power Plan - Remove

Summary

This is an Automate implementation of the agnostic script Agnostic - Remove-PowerPlan.

  • File Path: C:/ProgramData/_Automation/script/Remove-PowerPlan/Remove-PowerPlan.ps1
  • File Hash (Sha256): 5CA9E22892E872DE4020E41E6BB4840CD47BBDBBFB4002D6D622E7828D63E64F
  • File Hash (MD5): D1A1BB2B61D2507BF59E10CB23D140E8

Sample Run

Sample Run

Notes:

  • Ensure that the name of the PowerPlan matches exactly with the Power Plan column in the Power Plan - Audit [Script] dataview.
  • The Active Power Plan cannot be removed from the machine directly. To remove the active power plan, you must first set another Power Plan as active on the computer before removing it. This action can be achieved using the Script - Power Plan - Enable script.
  • The information of the removed power plan will be removed from the Power Plan - Audit [Script] dataview as well.

Dependencies

Variables

NameDescription
ProjectNameRemove-PowerPlan
WorkingDirectoryC:/ProgramData/_Automation/Script/Remove-PowerPlan

User Parameters

NameExampleRequiredDescription
PowerPlanLatest TestingTrueName of the Power Plan to remove

Output

  • Script Log
  • Dataview