Skip to content

Fix display on Extended Protection in Health Checker#1408

Merged
dpaulson45 merged 3 commits into
mainfrom
dpaul-HcDev
Jan 3, 2023
Merged

Fix display on Extended Protection in Health Checker#1408
dpaulson45 merged 3 commits into
mainfrom
dpaul-HcDev

Conversation

@dpaulson45

Copy link
Copy Markdown
Member

Issue:
Health Checker isn't converting the applicationHost.config to an xml type causing Get-ExtendedProtectionConfiguration to fail out.

Issue wasn't caught by pester because when Get-ApplicationHostConfig was converted to pull bring back a string[] object type, was because the data in pester wasn't also changed from Import-Clixml to Get-Content. Therefore, the pester testing didn't have an issue and was never caught in lab testing.

Reason:
This needs to be displayed.

Updated pester testing to handle this correctly.

Fix:
Set the parameter variable to be an xml type in the try catch block prior to splat.

Resolved #1407

Validation:
Lab tested
Pester tested

@dpaulson45 dpaulson45 merged commit 483a1a1 into main Jan 3, 2023
@dpaulson45 dpaulson45 deleted the dpaul-HcDev branch January 3, 2023 22:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Issue] - Health Checker Missing Extended Protection Configuration Report

2 participants