Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles
(untagged)

MSMQ: Deleting a Private Queue Where Access is Now Denied

0.00/5 (No votes)
22 Jun 2016 1  
How to remove a private queue where the access is corrupted

Introduction

You know the story, you are working on a private MSMQ. Something goes wrong and now you cannot access the queue to clear it down or remove it.

My Tip

Navigate to C:\Windows\System32\msmq\storage\lqs, open each file until:

  1. you find the one with the offending queue name, and
  2. any other that is behaving itself

Move the offending file to another folder - you may not have edit access in the lqs folder. This has the effect of removing the queue from computer management, and that may be job done for you.

If you want to work with the queue, copy the security string from your working queue and use it to replace the security string in the damaged one. Now return the queue definition to the lqs folder.

This gave me back access to the queue.

History

  • 2016-06-22 - Initial version

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here