Friday 19 August 2011

Viewing queues on all hub transport servers in one handy PowerShell command

I can’t take any credit for this, a college and I came up with the idea that we needed a way of viewing the queues on all of our hub transport servers in once place, opposed to having to connect to each one individually, it just so happened that he came up with the goods quicker than I did!

So what is the problem?  Using the queue viewer in EMC, it will only display the queues on the server you have selected, the same goes for the PowerShell command get-queue; you have to specify a hub transport server.

The solution, pipe the results of a get-exchangeserver cmdlet filtered to return hub transport servers into the get-queue command.
Here it is – enjoy!

get-exchangeserver | where {$_.ishubtransportserver -eq $true } | get-queue | sort messagecount –descending

Thanks Jon!

6 comments:

  1. Lists & reviews of new & used RV & motorhome dealerships in Missouri. Find addresses, days & hours of operation, websites, & phone numbers. Top RV dealer in Arkansas

    ReplyDelete
  2. Examples include confiscation, absence of a legal heir of physical property and government possession. https://litebluelogin.com/

    ReplyDelete
  3. The most punctual pontoons and boats were steered through inland trenches for transporting individuals and flavors. melbourne removalists

    ReplyDelete
  4. The first step to ship a car is to get vehicle shipping quotes. When you do this, you should get vehicle shipping quotes from at least 3 different car companies. john deere d110 review

    ReplyDelete
  5. A simple internet search term for "auto transport discount" will reveal thousands of hits and it is your job to find the best ones. move it move it

    ReplyDelete
  6. On the off chance that there remain issues, which is exceedingly uncommon after he trip, the movement organization's client benefit agent ought to be near and is in charge of keeping you the client as cheerful as could be allowed. car moving services

    ReplyDelete