Skip to content

PowerPlan

Daniel Scott-Raynsford edited this page Feb 22, 2019 · 8 revisions

PowerPlan

Parameters

Parameter Attribute DataType Description Allowed Values
IsSingleInstance Key String Specifies the resource is a single instance, the value must be 'Yes'. Yes
Name Required String The name of the power plan to activate.
IsActive Read Boolean Determines if the power plan is active.

Description

The resource allows specifying a power plan to activate.

Examples

Example 1

This examples sets the active power plan to the 'High performance' plan.

Configuration Example
{
    param
    (
        [Parameter()]
        [System.String[]]
        $NodeName = 'localhost'
    )

    Import-DscResource -ModuleName ComputerManagementDsc

    Node $NodeName
    {
        PowerPlan SetPlanHighPerformance
        {
          IsSingleInstance = 'Yes'
          Name             = 'High performance'
        }
    }
}