Check Exchange Service 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) }
About this post
Posted: 2022-08-25
By: dwirch
Viewed: 238 times
Categories
Exchange
Scripting
Powershell
PowerShell Code Cache
Attachments
Loading Comments ...
Comments
No comments have been added for this post.
You must be logged in to make a comment.