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

Hello,

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.
JOSHUABTAsked:
Who is Participating?
 
TomasPCommented:
Here are some link that will help you delete the deadletter queue
This is PowerShell scripting
0
 
JOSHUABTAuthor Commented:
TomasP
Did you forget to include the link?
0
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:
Tomas,
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?

Thanks,
0
 
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?

0
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.