My PowerShell

Windows Powershell scripts, examples, tips, docs …

Checking Exchange Services Status

This command is helpful in quickly seeing which services are running particularly after a reboot.

Get-Service | Where {$_.DisplayName -Like “Microsoft Exchange*”}

How to check the Services on all Exchange servers? The check_Exchange_Services function is designed to connect to each Exchange server and list all Exchange related services. Keep in mind, different Exchange server roles can have different combinations of services.

function check_Exchange_Services($strServer)
Write-Host “”
Write-Host “Checking server $strServer” -ForegroundColor Cyan
Get-Service -ComputerName $strServer | Where {$_.DisplayName -Like “Microsoft Exchange*”}

Get-ExchangeServer | foreach { check_Exchange_Services($_.Name) }

Tagged as: ,

Leave a Response