Description
Details of the scenario you tried and the problem that is occurring:
Suggest we add a read-only property IsActive
to the resource PowerPlan, and set that to $plan.isActive
instead of setting the $Name
to $null
in Get-TargetResource
if the plan is not the active plan.
The DSC configuration that is using the resource (as detailed as possible):
Any configuration that hasn't the power plan as the active power plan.
Version of the Operating System and PowerShell the DSC Target Node is running:
n/a
Version of the DSC module you're using, or 'dev' if you're using current dev branch:
Dev