PowerPlan: Add a read-only property IsActive #171
Labels
enhancement
The issue is an enhancement request.
good first issue
The issue should be easier to fix and can be taken up by a beginner to learn to contribute on GitHub
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
inGet-TargetResource
if the plan is not the active plan.https://github.com/PowerShell/ComputerManagementDsc/blob/c0a60754c2ec537f1668e4a3cf6ca7423a8c9a2c/Modules/ComputerManagementDsc/DSCResources/MSFT_PowerPlan/MSFT_PowerPlan.psm1#L67-L76
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
The text was updated successfully, but these errors were encountered: