microsoft / microsoft/CSS-Exchange

[Work Item] Improve power plan detection in HealthChecker

Open
#1,909 2 comments 0 reactions 1 assignee View on GitHub

@dpaulson45 is already working on this.

Since Dec 6, 2024.

good first issue Health Checker Work Item
Dominant language
PowerShell
Stars
1.3k
Forks
395
Avg merge
14h 7m
Merged PRs (30d)
5

Description

Describe the work
Today, HealthChecker is able to properly detect if one of the default high performance power plans is set on the OS:

Power Scheme GUID: 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c  (High performance)
Power Scheme GUID: db310065-829b-4671-9647-2261c00e86ef  (High performance ConfigMgr)

However, if customers create a custom power plan, Windows generates a new GUID, which breaks our logic that we use in Get-PowerPlanSetting.ps1. This may result in false positives, because if the custom power plan is configured as we expect it to be, we are not able to properly detect the power settings (since we just check for the GUID and not for the settings of the power plan).

The same situation would happen in case that the default high performance power plan was adjusted and is no longer a "real" high performance power plan (because some of the new settings throttle system performance). We would show this configuration as good, since the GUID doesn't change in that case.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.