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