Created
November 12, 2011 22:05
-
-
Save vansickle/1361189 to your computer and use it in GitHub Desktop.
Delete all MSMQ queues
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[void] [Reflection.Assembly]::LoadWithPartialName("System.Messaging") | |
[System.Messaging.MessageQueue]::GetPrivateQueuesByMachine("LOCALHOST") | % {".\" + $_.QueueName} | % {[System.Messaging.MessageQueue]::Delete($_); } | |
echo "All MSMQ queues deleted" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
just the thing i needed