---
title: Resolve MSMQ Queue Access Denied and Restore Private Queue Permissions
description: Restore permissions on an MSMQ private queue that returns access denied, so the Nodinite Pickup Service and the Message Queueing Monitoring Agent can read and monitor it again.
---

# MSMQ Queue Access Denied

If you get an **"access denied"** message when you try to change the permissions of an MSMQ private queue, this guide restores the queue's security descriptor so <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> can use the queue again.

* ✅ Step-by-step solution to restore MSMQ queue permissions  
* ✅ Gets the [Pickup Service][] and the [Message Queueing Monitoring Agent][Message Queuing Agent] reading and monitoring the queue again  
* ✅ No need to delete and recreate the queue  

## <i class="fal fa-circle-info" aria-hidden="true"></i> When This Happens

In <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> v7, MSMQ queues are read by the [Pickup Service][] (the [MSMQ configuration][Pickup MSMQ] picks up [Log Events][] and sends them to the [Log API][]) and monitored by the [Message Queueing Monitoring Agent][Message Queuing Agent] ([Monitoring MSMQ][]). The WCF-over-MSMQ endpoint of earlier Log API versions doesn't exist in v7; see [Log using WCF][].

A queue becomes locked when a service or an administrator removes the **Everyone** group from the permissions of a private queue. You then can't change its permissions: when you click **Apply** or **OK**, you get access denied. The account that runs the Pickup Service or the agent then can't read the queue either.

## <i class="fal fa-wrench" aria-hidden="true"></i> Restore the Queue Permissions

The permissions of each private queue live in its LQS file. Copy the security line from a queue that works:

1. Stop the **Message Queuing** service.  
2. Open the folder `C:\WINDOWS\system32\msmq\storage\lqs`.  
3. Find the file that describes your problem queue.  
4. In Notepad, open the LQS file of another private queue that has correct permissions. If you have no other private queue, create one.  
5. Find the line that begins with `Security=`.  
6. Copy the entire `Security=` line; it is usually very long, so watch out for word wrap.  
7. Open the LQS file of your problem queue in your text editor.  
8. Overwrite its `Security=` line with the one you copied.  
9. Save the modified LQS file.  
10. Start the **Message Queuing** service.  

The problem queue now has the same permissions as the working queue. Grant the service account of the [Pickup Service][] or the agent the rights it needs on the queue; see [Logon as a Service right][] for the service accounts <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> uses.

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

* <i class="fal fa-envelope" aria-hidden="true"></i> [Pickup Service MSMQ configuration][Pickup MSMQ]  
* <i class="fal fa-list" aria-hidden="true"></i> [Message Queueing Monitoring Agent prerequisites][MQ Prerequisites]  
* <i class="fal fa-arrow-up-right-from-square" aria-hidden="true"></i> [Microsoft: Message Queuing (MSMQ)](https://learn.microsoft.com/en-us/previous-versions/windows/desktop/msmq/ms711472%28v=vs.85%29)<sup><i class="fal fa-arrow-up-right-from-square" aria-hidden="true"></i></sup>  

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

* <i class="fal fa-cloud-arrow-down" aria-hidden="true"></i> [Log API][]  
* <i class="fal fa-wrench" aria-hidden="true"></i> [Log API Troubleshooting][LogAPITroubleshooting]  
* <i class="fal fa-shield-halved" aria-hidden="true"></i> [Nodinite Access Management][NodiniteAccess]  
* <i class="fal fa-arrow-turn-up" aria-hidden="true"></i> [Windows Server Troubleshooting][Windows Overview]  

[Log API]:https://docs.nodinite.com/core-services/log-api/overview/
[Log Events]:https://docs.nodinite.com/core-services/log-event/overview/
[Log using WCF]:https://docs.nodinite.com/core-services/log-api/features/log-using-wcf/
[LogAPITroubleshooting]:https://docs.nodinite.com/core-services/log-api/troubleshooting/overview/
[Logon as a Service right]:https://docs.nodinite.com/install-and-update/troubleshooting/windows/logon-as-a-service-right/
[Message Queuing Agent]:https://docs.nodinite.com/logging-and-monitoring/message-queueing/overview/
[Monitoring MSMQ]:https://docs.nodinite.com/logging-and-monitoring/message-queueing/features/microsoft-msmq/monitoring-msmq/
[MQ Prerequisites]:https://docs.nodinite.com/logging-and-monitoring/message-queueing/getting-started/prerequisites/
[NodiniteAccess]:https://docs.nodinite.com/administration/access-management/overview/
[Pickup MSMQ]:https://docs.nodinite.com/logging-and-monitoring/pickup-logevents-service/features/configurations/msmq/
[Pickup Service]:https://docs.nodinite.com/logging-and-monitoring/pickup-logevents-service/overview/
[Windows Overview]:https://docs.nodinite.com/install-and-update/troubleshooting/windows/overview/