Skip to content
Merged
Show file tree
Hide file tree
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 @@ -41,7 +41,7 @@ Function Get-ComputerCoresObject {

Function Get-ExchangeDCCoreRatio {

Invoke-ScriptLogFileLocation -FileName "HealthCheck-ExchangeDCCoreRatio"
Invoke-ScriptLogFileLocation -FileName "HealthChecker-ExchangeDCCoreRatio"
Write-Verbose "Calling: $($MyInvocation.MyCommand)"
Write-Grey("Exchange Server Health Checker Report - AD GC Core to Exchange Server Core Ratio - v{0}" -f $BuildVersion)
$coreRatioObj = New-Object PSCustomObject
Expand Down
12 changes: 8 additions & 4 deletions Diagnostics/HealthChecker/HealthChecker.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ Function Main {
}

if ($LoadBalancingReport) {
Invoke-ScriptLogFileLocation -FileName "LoadBalancingReport"
Invoke-ScriptLogFileLocation -FileName "HealthChecker-LoadBalancingReport"
Write-Green("Client Access Load Balancing Report on " + $date)
Get-CASLoadBalancingReport
Write-Grey("Output file written to " + $OutputFullPath)
Expand All @@ -227,7 +227,7 @@ Function Main {
}

if ($MailboxReport) {
Invoke-ScriptLogFileLocation -FileName "HealthCheck-MailboxReport" -IncludeServerName $true
Invoke-ScriptLogFileLocation -FileName "HealthChecker-MailboxReport" -IncludeServerName $true
Get-MailboxDatabaseAndMailboxStatistics
Write-Grey("Output file written to {0}" -f $Script:OutputFullPath)
return
Expand Down Expand Up @@ -260,7 +260,7 @@ Function Main {
return
}

Invoke-ScriptLogFileLocation -FileName "HealthCheck" -IncludeServerName $true
Invoke-ScriptLogFileLocation -FileName "HealthChecker" -IncludeServerName $true
$currentErrors = $Error.Count

if ((-not $SkipVersionCheck) -and
Expand Down Expand Up @@ -314,7 +314,11 @@ Function Main {
}

try {
$Script:Logger = New-LoggerObject -LogName "HealthChecker-Debug" -LogDirectory $OutputFilePath -VerboseEnabled $Script:VerboseEnabled -EnableDateTime $false -ErrorAction SilentlyContinue
$Script:Logger = New-LoggerObject -LogName "HealthChecker-$($Script:Server)-Debug" `
-LogDirectory $OutputFilePath `
-VerboseEnabled $Script:VerboseEnabled `
-EnableDateTime $false `
-ErrorAction SilentlyContinue
Main
} finally {
Get-ErrorsThatOccurred
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Licensed under the MIT License.

Function Get-HealthCheckFilesItemsFromLocation {
$items = Get-ChildItem $XMLDirectoryPath | Where-Object { $_.Name -like "HealthCheck-*-*.xml" }
$items = Get-ChildItem $XMLDirectoryPath | Where-Object { $_.Name -like "HealthChecker-*-*.xml" }

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