2
1
Is there any way in MSMQ to delete all private queues?
I have thousands of private queues on my computer, I'm fairly sure most, if not all, of them, are caused by a badly behaved app that creates a new queue with a random GUID for its name every time it starts up.
Now I want to create a couple of other private queues to do some work with MSMQ, I'm finding that the thousands of unused existing queues are not only cluttering up the view when I open Private Queues in the Computer Management tool, but I suspect they are the reason why opening Private Queues in Computer Management takes ages on my machine.
I can delete individual queues by just selecting one and hitting delete, but there doesn't seem to be an obvious way of selecting a range of queues to delete together.
OK, thanks. I was hoping there'd be some way to avoid writing a script to delete them, but I guess script it'll have to be.... – PhantomDrummer – 2012-03-06T14:38:45.880
Ah, don't sweat it. I'm sure you can whip something up in mere minutes. – Carlos – 2012-03-06T15:47:16.587