---
title: "Resolve MSMQ MMC Access Denied Errors: Step-by-Step Troubleshooting Guide"
description: "Resolve MSMQ MMC access denied errors: step-by-step guide to restoring permissions and troubleshooting queue access issues in Windows environments."
---

<a class="nodinite-release-notes" href="https://portal.nodinite.com/marketplace/28" data-url="https://portal.nodinite.com/marketplace/28"><i class="fal fa-fw fa-file-alt" aria-hidden="true"></i> Release Notes</a>

# Troubleshooting

On this page you will find answers to some of the most frequently asked questions regarding monitoring of Message Queuing technologies.

## Access denied using the MSMQ MMC

### <i class="fal fa-screwdriver-wrench" aria-hidden="true"></i> Fixing "Access Denied" in MSMQ MMC

If you're getting "Access Denied" when trying to modify MSMQ queue permissions (e.g., in MMC or via <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> monitoring), follow the revised and complete guide below to fully regain control of your queues.

#### Why this happens

This issue usually occurs because:

* The "Everyone" group or your admin user account has been removed from the queue's Security descriptor (ACL).
* MSMQ's internal queue definitions (stored as .lqs files) have incomplete or corrupted permissions.
* You're using an account that lacks NT AUTHORITY\SYSTEM or full control privileges on the queue.

#### Updated Step-by-Step Fix

<aside aria-label="Important" class="nodinite-note nodinite-note--important">
<p class="nodinite-note__label" aria-hidden="true"><i class="far fa-fw fa-message-exclamation"></i> Important</p>
<div class="nodinite-note__content"><p>You must perform the following steps using an elevated administrator account with ownership rights to the MSMQ folder and system permissions.</p></div>
</aside>

##### Step 1: Stop the MSMQ Service

From an elevated Command Prompt or PowerShell:

```bash
net stop msmq
```

##### Step 2: Take Ownership of LQS Files (if needed)

Sometimes the files are protected even from administrators.

```bash
takeown /f "C:\WINDOWS\system32\msmq\storage\lqs\*" /a
icacls "C:\WINDOWS\system32\msmq\storage\lqs\*" /grant administrators:F
```

This ensures you can read/write the LQS files.

##### Step 3: Identify the Problem Queue

Navigate to:

```bash
C:\WINDOWS\system32\msmq\storage\lqs
```

Use a text editor (like Notepad++ run as Administrator) to search inside the .lqs files for your queue name (e.g., logapiserviceoneway.svc).

Open the correct file once identified.

##### Step 4: Copy a Working Security Descriptor

If you have another private queue that works (you can access it in MMC):

* Open its .lqs file.
* Find the line beginning with Security=
* Copy the entire line (watch out for word wrap)

<aside aria-label="Tip" class="nodinite-note nodinite-note--tip">
<p class="nodinite-note__label" aria-hidden="true"><i class="far fa-fw fa-lightbulb"></i> Tip</p>
<div class="nodinite-note__content"><p>If you don't have another queue, create a temporary private queue in MSMQ MMC, assign it default permissions, and copy the Security= line from there.</p></div>
</aside>

##### Step 5: Replace Security Descriptor in Problem Queue

In the .lqs file of the problem queue, replace the existing Security= line with the working one.

Save the file (ensure it's saved as UTF-8 with no extra formatting).

###### Set Correct File Permissions on the Modified File

Sometimes even after modifying the file, MSMQ cannot read it due to incorrect file ACLs.

Run the following command:

```bash
icacls "C:\WINDOWS\system32\msmq\storage\lqs\YourQueueFile.lqs" /grant "NT AUTHORITY\SYSTEM":F
```

Replace YourQueueFile.lqs with the actual file name.

##### Step 6: Restart MSMQ

You need to restart the MSMQ service to apply changes:

```bash
net start msmq
```

##### Step 7: Verify Access in MMC

Open MMC > Message Queuing > Private Queues:

* Right-click the queue → Properties → Security tab
* Confirm you can now view and modify permissions

##### <i class="fal fa-lock" aria-hidden="true"></i> Optional: Restore Secure Default Permissions

After access is restored, consider removing excess permissions and applying a known good security policy for your environment (consult your security team).

##### <i class="fal fa-phone" aria-hidden="true"></i> Still having issues?

If the issue persists, your system may be affected by:

* Group Policy overwrites
* NTFS-level file locks
* MSMQ corruption

If you still cannot resolve the issue, please contact [Support][] for further assistance.

## <i class="fal fa-square-plus" aria-hidden="true"></i> How do I enable monitoring of Azure Service Bus  

To Monitor the [Azure Service Bus][]; Check the **Enable monitoring** for Service Bus checkbox (default is checked). Additional configuration is required; Review the '[User access to Azure Service Bus monitoring][User access to Azure ServiceBus monitoring]' user guide for specifics.

The screenshot below is from the remote [configuration][] form available from the [Monitoring Agents][] administration page.  
![Enable Monitoring][6]  
*Example with monitoring for Azure Service Bus resources enabled.*

## <i class="fal fa-hand-point-right" aria-hidden="true"></i> Next Steps

* <i class="fal fa-wrench" aria-hidden="true"></i> [Configure the Message Queueing Monitoring Agent][Configuration]  
* <i class="fal fa-key" aria-hidden="true"></i> [User access to Azure Service Bus monitoring][User access to Azure ServiceBus monitoring]  

## <i class="fal fa-link-horizontal" aria-hidden="true"></i> Related Topics

* <i class="fal fa-envelope" aria-hidden="true"></i> [Message Queueing Monitoring Agent][Message Queueing Overview]  
* <i class="fal fa-square-check" aria-hidden="true"></i> [Prerequisites][Message Queueing Prerequisites]  
* <i class="fal fa-download" aria-hidden="true"></i> [Install the Message Queueing Monitoring Agent][Message Queueing Install]  
* <i class="fal fa-traffic-light-go" aria-hidden="true"></i> [Monitoring Azure Service Bus Queues][Azure Service Bus]  
* <i class="fal fa-monitor-waveform" aria-hidden="true"></i> [Monitoring Agents][]  

[6]:https://docs.nodinite.com/media/Documentation%20Pictures/MonitorAgent/MessageQueueing/SB/EnableMonitoring.png

[Azure Service Bus]:https://docs.nodinite.com/logging-and-monitoring/message-queueing/features/azure-service-bus-queues/monitoring-azure-service-bus-queue/
[Configuration]:https://docs.nodinite.com/logging-and-monitoring/message-queueing/getting-started/configuration/
[Message Queueing Install]:https://docs.nodinite.com/logging-and-monitoring/message-queueing/getting-started/install/
[Message Queueing Overview]:https://docs.nodinite.com/logging-and-monitoring/message-queueing/overview/
[Message Queueing Prerequisites]:https://docs.nodinite.com/logging-and-monitoring/message-queueing/getting-started/prerequisites/
[Monitoring Agents]:https://docs.nodinite.com/administration/monitor-management/monitor-agents/features/what-is-a-monitor-agent/
[Support]:https://support.nodinite.com
[User access to Azure ServiceBus monitoring]:https://docs.nodinite.com/logging-and-monitoring/message-queueing/features/azure-service-bus-queues/user-access-to-service-bus-monitoring/