65.9K
CodeProject is changing. Read more.
Home

MSMQ: Deleting a Private Queue Where Access is Now Denied

starIconstarIconstarIconstarIconstarIcon

5.00/5 (4 votes)

Jun 22, 2016

CPOL
viewsIcon

17570

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