Affects Version/s: None
Fix Version/s: None
Template:MODULES Bug Template customfield_10700 363690
Method Found:Needs Assessment
QA Risk Assessment:Needs Assessment
Module Version: v1.9.4
Puppet Version: PE 2019.7.0
OS Name/Version: Windows 2019
Describe your issue in as much detail as possible...
Customer currently using counsyl-windows windows::power_scheme to set powerplan on Windows 2019. Attempt to switch to dsc_powerplan, however this fails as dsc_powerplan cannot change/set powerplan as still using Win32_Powerplan (reference)
This appears to be the error described here: https://github.com/dsccommunity/ComputerManagementDsc/issues/155#issuecomment-386300871
Somewhere between 1703 to 1709, the Win32_PowerPlan class's "Activate" method was broken.
This appears to have been fixed upstream ~March 2019 https://github.com/dsccommunity/ComputerManagementDsc/pull/203
Update underlying module so dsc_powerplan is able to enable/set/change powerplan
Using the following configuration: (where $plan = 'High performance')
If powerplan is already enabled + set to desired setting there are no errors.
If powerplan needs to be enabled/changed, it fails with the following error:
Please take a moment and attach any relevant log output and/or manifests. This will help us immensely when troubleshooting the issue.