Skip to main content

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

Sample Run

Dependencies

Global Variables

NameValueAccepted ValuesDescription
DebugFalseFalse, TrueWhen 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.
ScriptEngineEnableLoggerFalseFalse, TrueWhen 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

NameDescription
TableNamepvl_powerplan_audit
ProjectNameGet-PowerPlan
WorkingDirectoryC:\ProgramData_automation\script\Get-PowerPlan
JsonFileNameGet-PowerPlan.json

Output

  • Script Log
  • Custom Table
  • Dataview