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
Notes:
- Ensure that the name of the
PowerPlanmatches exactly with thePower Plancolumn 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
- Agnostic - Remove-PowerPlan
- Script - Power Plan - Audit [DV]
- Dataview - Power Plan - Audit [Script]
- Solution - Power Plan Management
Variables
| Name | Description |
|---|---|
| ProjectName | Remove-PowerPlan |
| WorkingDirectory | C:/ProgramData/_Automation/Script/Remove-PowerPlan |
User Parameters
| Name | Example | Required | Description |
|---|---|---|---|
| PowerPlan | Latest Testing | True | Name of the Power Plan to remove |
Output
- Script Log
- Dataview