I’ve opened PMR 22083,004,000 on this, but I’d also like to discuss here.
In the “Power Management” site, the analysis “Power Consumption Analysis” should be updated to handle Windows 10 and Group Policy-applied power settings.
Many of the properties (“Current Power Scheme”, “Turn Off Monitor”, “Turn Off Hard Disks”, etc.) have a check ‘if (major version of operating system = 6)’ that should be changed to ‘if (major version of operating system >= 6)’ to handle Windows 10 / 2016.
While many of the properties check for Group-Policy applied settings at “HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Power\PowerSettings” among their checks, the property for “Current Power Scheme” does not check this key.
All of these properties should be updated to handle the case where an Active Power Scheme is set by Group Policy, but the individual settings are not forced by Group Policy. For example “Turn Off Monitor”, on Windows, checks
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Power\PowerSettings\3c0bc021-c8a8-4e07-a973-6b14cbcb2b7e
(which will find a “Turn Off Monitor” setting applied by Group Policy).
If that’s not found, it retrieves the locally-defined ActivePowerScheme by querying
"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\User\PowerSchemes\" & (value "ActivePowerScheme" of key "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\User\PowerSchemes" of registry as string) & "\7516b95f-f776-4464-8c53-06167f40cc99\3c0bc021-c8a8-4e07-a973-6b14cbcb2b7e"
, which would retrieve the value for this setting based on the locally-defined value of “ActivePowerScheme”
However, this does not contain a check for a Group Policy-defined “ActivePowerScheme” that did not have “Turn Off Monitor” configured.
In case where Group Policy forces the scheme to “Balanced” but HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\User\PowerSchemes is configured to “High Performance”, the Analysis will incorrectly return the values from the “High Performance” scheme rather than the “Balanced” scheme.