How to retrieve names of all private MSMQ queues - efficiently?

Posted by Damian Powell on Server Fault See other posts from Server Fault or by Damian Powell
Published on 2012-06-15T14:27:19Z Indexed on 2012/06/15 15:18 UTC
Read the original article Hit count: 588

Filed under:
|
|
|
|

How can I retrieve the names of all of the private MSMQ queues on the local machine, without using System.Messaging.MessageQueue.GetPrivateQueuesByMachine(".")? I'm using PowerShell so any solution using COM, WMI, or .NET is acceptable, although the latter is preferable.

Note that this StackOverflow question has a solution that returns all of the queue objects. I don't want the objects (it's too slow and a little flakey when there are lots of queues), I just want their names.

© Server Fault or respective owner

Related posts about powershell

Related posts about .NET