Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
# Licensed under the MIT License.

function Get-HealthCheckFilesItemsFromLocation {
$items = Get-ChildItem $XMLDirectoryPath | Where-Object { $_.Name -like "HealthChecker-*-*.xml" }
##This notation will break things if you have other xml files from runs with different parameters like exchangedccoreratio
##Filenames to exclude: *ExchangeDCCoreRatio* , all other reports generate txt-reports only
$items = Get-ChildItem $XMLDirectoryPath | Where-Object { $_.Name -like "HealthChecker-*-*.xml" -and $_.Name -notlike "HealthChecker-ExchangeDCCoreRatio-*.xml" }

if ($null -eq $items) {
Write-Host("Doesn't appear to be any Health Check XML files here....stopping the script")
Expand Down