Skip to content

Instantly share code, notes, and snippets.

@jbogard
Created February 14, 2013 15:54
Show Gist options
  • Save jbogard/4953702 to your computer and use it in GitHub Desktop.
Save jbogard/4953702 to your computer and use it in GitHub Desktop.
Purge all private queues
[Reflection.Assembly]::LoadWithPartialName("System.Messaging")
[System.Messaging.MessageQueue]::GetPrivateQueuesByMachine("localhost") | % { $_.Purge() }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment