profile for Hannel on Stack Exchange, a network of free, community-driven Q&A sites
Project Work Hours
Sat & Sun 6am - 9am
Subscribe via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Archives

Let me start off with state that i know there are other ways that might be simpler for other people (i.e. Performance Counter) but i still like the old fashion way. Below is how i check my exchange queues when someone reports a delay issue.

20151022 -Exchange Queue

 

Just 2 lines does the job effectively

$tServer = (Get-ExchangeServer | ? {$_.serverrole -like "*Mailbox*"}).name
$tServer | % {Get-Queue -Server $_ | ? {$_.messagecount -ge 0}}

Where the “0” in the script can be change to any thing you deem significant, example;

$tServer | % {Get-Queue -Server $_ | ? {$_.messagecount -ge 10}

Please note that this is only for Exchange 2013 and 2016 

Enjoy!!!