Power Plan - Audit [DV]
Summary
This is an Automate implementation of the agnostic script Get-PowerPlan to gather data and store it in the pvl_powerplan_audit custom table. The data collected is subsequently displayed using the Power Plan - Audit [Script] dataview.
File Path: C:/ProgramData/_Automation/script/Get-PowerPlan/Get-PowerPlan.ps1
File Hash (Sha256): DDE3ACC4A91AB8C7E8971A673AC07B8F4B3B34FA8DAD5849E156C5E6A80DFDF8
File Hash (MD5): AE0FAF82228693C611F4578564FE353C
File Path: C:/ProgramData/_Automation/script/Get-PowerPlan/Get-PowerPlanAI.ps1
File Hash (Sha256): 5A30EF83D46EB05CA6EA9202810237E345C6DDBD56FFB407D3581E7D50C25BD0
File Hash (MD5): 0D737FC67F3A41B222038A284C5DAD5D
Sample Run

Dependencies
- Script - Get-PowerPlan
- Internal Monitor - Execute Script - Power Plan - Audit
- Script - OverFlowedVariable - SQL Insert - Execute
Global Variables
| Name | Value | Accepted Values | Description |
|---|---|---|---|
| Debug | False | False, True | When True, enables informational logging; when False (default), informational logs are suppressed to avoid adding entries to the h_scripts table. Set to True to assist with troubleshooting. |
| ScriptEngineEnableLogger | False | False, True | When True, enables final (success/failure) logging; when False (default), these logs are suppressed to avoid adding entries to the h_scripts table. Set to True to assist with troubleshooting. |
Variables
| Name | Description |
|---|---|
| TableName | pvl_powerplan_audit |
| ProjectName | Get-PowerPlan |
| WorkingDirectory | C:\ProgramData_automation\script\Get-PowerPlan |
| JsonFileName | Get-PowerPlan.json |
Output
- Script Log
- Custom Table
- Dataview