get-allqueues.ps1 v1.0

Can remember if I posted this or not, but I forgot who handy it is.

basically if just runs get-queue, but for all you Exchange 2007 Hub Transport Servers 

Ah, but what is really cool is this .. You can do “stuff” with the output 

So you could run

[PS] C:ps>.get-allqueues.ps1

[PS] C:ps>.get-allqueues.ps1 | WHERE {$_.MessageCount -gt 0}

[PS] C:ps>.get-allqueues.ps1 | WHERE {$_.MessageCount -gt 0} | get-message

[PS] C:ps>.get-allqueues.ps1 | WHERE {$_.MessageCount -gt 0} | get-message | fl

check it out and let me know what you think

##########################################################################################
$AppName = “get-allqueues.ps1″
$AppVer  = “v1.0 [9 May 2007]”
#v1.0 9th May 2007                         
#Written By Paul Flaherty                  
#blogs.flaphead.com                        
##########################################################################################

##########################################################################################
#Display script name and version
##########################################################################################
Write-host $AppName -NoNewLine -foregroundcolor Green
Write-Host “: ” $AppVer -foregroundcolor Green
Write-host “”

Get-ExchangeServer | where {$_.ServerRole -eq “HubTransport”} | get-queue

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: