Examples/Resources/PowerPlan/1-SetPowerPlan.ps1

<#
    .EXAMPLE
    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'
        }
    }
}