Skip to content

PowerPlan

Daniel Scott-Raynsford edited this page Aug 23, 2018 · 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.

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'
        }
    }
}