Skip to content

Skip HC class loading when ScriptUpdateOnly was called#817

Merged
dpaulson45 merged 1 commit into
mainfrom
lusassl-hcupdateimprovement
Dec 17, 2021
Merged

Skip HC class loading when ScriptUpdateOnly was called#817
dpaulson45 merged 1 commit into
mainfrom
lusassl-hcupdateimprovement

Conversation

@lusassl-msft
Copy link
Copy Markdown
Contributor

@lusassl-msft lusassl-msft commented Dec 17, 2021

Issue:
Resolve #814
Script must be executed in a new session after ScriptUpdateOnly performed a script update. This is caused by the custom class which we use for HC and in case an adjustment was made to the class.

Reason:
We load the class even if ScriptUpdateOnly was used.

Fix:
Don't load the custom class via Add-Type when ScriptUpdateOnly was called.

Validation:
Lab

@dpaulson45 dpaulson45 merged commit 3b63775 into main Dec 17, 2021
@dpaulson45 dpaulson45 deleted the lusassl-hcupdateimprovement branch December 17, 2021 22:26
@dpaulson45 dpaulson45 added Enhancement New feature or request Health Checker labels Apr 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Enhancement New feature or request Health Checker

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Issue] - Health Checker - WARNING: There was an error trying to add custom classes to the current PowerShell session

2 participants