Skip to main content

Power Plan Management

Purpose

This solution automates the deployment of a standard power plan to Windows machines. Additionally, it can perform a comprehensive audit of power plans on each machine. However, auditing will generate a separate entry for each individual setting within every detected power plan. For example, a machine with five power plans could produce around 120 entries in the dataview.

Files

File PathFile Hash (SHA256)File Hash (MD5)Script
C:/ProgramData/_Automation/script/Get-PowerPlan/Manage-OverFlowedVariable.ps179B76E6780B61ED657C7FC07C5C0D9A0662165066D5BAD95D9D672513BADD67412B41CDBC04010E638D3FFB8A4BDB1D6Script - OverFlowedVariable - SQL Insert - Execute
C:/ProgramData/_Automation/script/Get-PowerPlan/Get-PowerPlan.ps1DDE3ACC4A91AB8C7E8971A673AC07B8F4B3B34FA8DAD5849E156C5E6A80DFDF8AE0FAF82228693C611F4578564FE353CScript - Power Plan - Audit [DV]
C:/ProgramData/_Automation/script/Get-PowerPlan/Get-PowerPlanAI.ps1C7CD78CEAC21FF393A913B266CB5C0EC12CEA8E364FA0AD346C287C2724639923AFF43D2532BA4AA1D6DB604F613C8EEScript - Power Plan - Audit [DV]
C:/ProgramData/_Automation/script/Set-PowerPlan/Set-PowerPlan.ps128C5503857406511327E72114784F559799CEBFE96A6D323FAA2A25F56F8488C7882C5890DCDFA7CE81DD62AB093A1F8Script - Power Plan - Set/Create
C:/ProgramData/_Automation/script/Enable-PowerPlan/Enable-PowerPlan.ps113F38A3CB96BE9C19B38ED09A1175852B33713DE43368B84867A7999D202F6F359BB9E9FB16FD5E53EB657D0F02ED9A8Script - Power Plan - Enable
C:/ProgramData/_Automation/script/Remove-PowerPlan/Remove-PowerPlan.ps15CA9E22892E872DE4020E41E6BB4840CD47BBDBBFB4002D6D622E7828D63E64FD1A1BB2B61D2507BF59E10CB23D140E8Script - Power Plan - Remove

Associated Content

Scripts

ContentTypeFunction
Script - Power Plan - Audit [DV]ScriptGather the information on available power plan(s).
Script - Power Plan - Set/CreateScriptCreate or modify a power plan.
Script - Power Plan - EnableScriptEnable or activate a power plan.
Script - Power Plan - RemoveScriptRemove a power plan.

Custom Table

ContentTypeFunction
Custom Table - pvl_powerplan_auditCustom TableStores the information gathered by the Script - Power Plan - Audit [DV].

Dataview

ContentTypeFunction
Dataview - Power Plan - Audit [Script]DataviewDisplays the information on available power plans.

Internal Monitor

ContentTypeFunction
Internal Monitor - Execute Script - Power Plan - AuditInternal MonitorDetects the physical workstation where the Script - Power Plan - Audit [DV] hasn't been run within the past 7 days.
Internal Monitor - PowerPlan AutomationInternal MonitorDetect machines where the Power Plan set in the Client-Level EDF "PowerPlan Name" EDF is not available, and Power Plan Automation is enabled.

Alert Template

ContentTypeFunction
△ Custom - Execute Script - Power Plan - AuditAlert TemplateExecute the Script - Power Plan - Audit [DV] on the machines detected by the Internal Monitor - Execute Script - Power Plan - Audit.
△ Custom - PowerPlan AutomationAlert TemplateExecute the Script - Power Plan - Set/Create on the machines detected by the Internal Monitor - PowerPlan Automation.

Implementation

Automation Prep

  1. Import the following content from the Prosync plugin:

  2. Reload the System Cache
    Image

  3. Run the Script - Power Plan - Set/Create with the Set_Environment parameter set to 1 to create the EDFs used by the script and PowerPlan Automation internal monitor.
    Image

  4. Configure the solution as follows:

Standardize

  1. Follow these steps only if instructed to do so: More details are provided in the Automation section of the Power Plan - Set/Create script's document.
    You can start by downloading the ProVal_-_High_Performance.csv found in the linked document above and placing it on the LTShare under the folder //LTShare//Transfer//PowerPlan.
    Image

  2. Next, navigate to System Dashboard → Config → Additional Field Defaults → Clients → PowerPlan

    • Fill out the PowerPlan Configuration File to show 'ProVal_-_High_Performance'
    • Enter the PowerPlan Name specified by the consultant (If it has not been specified, stop and reach out to them and ask) - This is the display name that the power plan will show up as within Windows and what the client will see. This will likely be <Client Abbreviation> Standard. Like 'ProVal Standard' for example.
    • IMPORTANT Do NOT fill out the PowerPlan Automation EDF. That will need to be filled out by the partner on a per-client basis.
      Image
  3. Reach out to the consultant to let them know the standardization steps have been followed and the client can issue the PowerPlan automation by selecting the following EDF:
    Image

Optional Auditing

  1. NOTE The auditing on this solution is optional since it imports a very large amount of data into the custom table, but it should not take up much space in the end.
    Import the following content from the Prosync plugin:

  2. Execute this script against an online Windows workstation to create the EPM - Data Collection - Custom Table - pvl_powerplan_audit custom table:

  3. Run this script against any client in the environment to provide permission of the newly created custom table to all users:

  4. Configure the solution as follows:

    • Navigate to Automation → Monitors within the CWA Control Center and set up the following:

Additional Notes

Refer to the documentation accompanying the respective script for detailed instructions on its usage, including guidance on utilizing the script's parameters.