JOSHUABT
asked on
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.
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.
ASKER
TomasP
Did you forget to include the link?
Did you forget to include the link?
D'oh. PowerShell is your friend for this type of work.
http://blogs.msdn.com/b/jo hnbreakwel l/archive/ 2010/03/19 /powershel l-script-t o-create-a nd-delete- msmq-queue s.aspx
http://www.xipher.dk/WordPress/
http://blogs.msdn.com/b/jo
http://www.xipher.dk/WordPress/
ASKER
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,
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,
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
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?
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?
This is PowerShell scripting