A script to purge dead letter messages in Windows 2008 R2 MSMQ


Can anyone refer me to any kind of script that can purge dead letter messages in Windows 2008 R2 message queue?

Thank you for your help.
Who is Participating?
Here are some link that will help you delete the deadletter queue
This is PowerShell scripting
JOSHUABTAuthor Commented:
Did you forget to include the link?
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

JOSHUABTAuthor Commented:
The original question was not celar enough.
We are looking for a way to purge messages from deadletter queue, and not deleting the queue itself.
Any idea?

JOSHUABTAuthor Commented:
Thanks for the help.

I do have a couple of questions:
   1. Can this method purge the Dead Letter system queue?
   2. How would I find the path to the queue?

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.