Skip to content

Change pagefile display write type color to Green#2523

Open
trudolf-msft wants to merge 1 commit intomicrosoft:mainfrom
trudolf-msft:patch-2
Open

Change pagefile display write type color to Green#2523
trudolf-msft wants to merge 1 commit intomicrosoft:mainfrom
trudolf-msft:patch-2

Conversation

@trudolf-msft
Copy link
Member

If recommended value is correct it should show as green. Customer was confused and did check manually

If recommended value is correct it should show as green. Customer was confused and did check manually
@trudolf-msft trudolf-msft requested a review from a team as a code owner March 25, 2026 14:51
Copilot AI review requested due to automatic review settings March 25, 2026 14:51
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates HealthChecker OS analysis output so a correctly configured Exchange 2019 pagefile is shown as a “good” (Green) result, reducing customer confusion when verifying recommendations.

Changes:

  • Change PageFile “matches recommendation” DisplayWriteType from Grey to Green for the Exchange 2019 sizing branch.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 264 to 268
} elseif ($recommendedPageFile -ne $pageFileObj.MaxPageSize) {
$pageFileAdditionalDisplayValue = ("Warning: $recommendedPageFileWording2019" -f $recommendedPageFile, $totalPhysicalMemory)
} else {
$displayWriteType = "Grey"
$displayWriteType = "Green"
}
Copy link

Copilot AI Mar 25, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change makes the Exchange 2019 “pagefile matches recommendation” case show as Green, but the other “matches recommendation” branches in the same PageFile analyzer still set $displayWriteType to "Grey" (e.g., non-2019 32GB+ exact 32778, and <32GB exact totalMemory+10). If the intent (per PR description and HealthChecker.ps1 notes) is that settings matching recommendations are Green, those branches should be updated as well for consistent behavior.

Copilot uses AI. Check for mistakes.
$pageFileAdditionalDisplayValue = ("Warning: $recommendedPageFileWording2019" -f $recommendedPageFile, $totalPhysicalMemory)
} else {
$displayWriteType = "Grey"
$displayWriteType = "Green"
Copy link

Copilot AI Mar 25, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are Pester scenarios validating PageFile behavior, but none assert the WriteType for the “configured as expected” case. Since this PR changes the PageFile DisplayWriteType to Green when it matches the recommendation, please add/adjust a test assertion so the color regression is covered (e.g., assert GetWriteTypeObject "PageFile Size 0" is Green for the well-configured Exchange 2019 scenario).

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants