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 @@ -84,9 +84,13 @@ begin {
$Script:SkipEWS = $false
}

if (-not((Confirm-ExchangeShell -Identity $env:COMPUTERNAME).ShellLoaded)) {
$exchangeShell = Confirm-ExchangeShell -Identity $env:COMPUTERNAME
if (-not($exchangeShell.ShellLoaded)) {
Write-Warning "Failed to load the Exchange Management Shell. Start the script using the Exchange Management Shell."
exit
} elseif (-not ($exchangeShell.EMS)) {
Write-Warning "This script requires to be run inside of Exchange Management Shell. Please run on an Exchange Management Server or an Exchange Server with Exchange Management Shell."
exit
}

$BuildVersion = ""
Expand Down