Skip to content

Instantly share code, notes, and snippets.

@vansickle
Created November 12, 2011 22:05
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save vansickle/1361189 to your computer and use it in GitHub Desktop.
Save vansickle/1361189 to your computer and use it in GitHub Desktop.
Delete all MSMQ queues
[void] [Reflection.Assembly]::LoadWithPartialName("System.Messaging")
[System.Messaging.MessageQueue]::GetPrivateQueuesByMachine("LOCALHOST") | % {".\" + $_.QueueName} | % {[System.Messaging.MessageQueue]::Delete($_); }
echo "All MSMQ queues deleted"
@Me3yer
Copy link

Me3yer commented Feb 25, 2020

just the thing i needed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment