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
Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

 
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
All Courses

From novice to tech pro — start learning today.