How to programmatically read permissions on MSMQ queues? How to programmatically read permissions on MSMQ queues? powershell powershell

How to programmatically read permissions on MSMQ queues?


You may be stuck using P/Invoke to call MQGetQueueSecurity. IIRC the COM interface doesn't have support for reading queue permissions either.


I had the same problem and took some of the advice that has been suggested here. I made a small c# project that uses p/invoke to get the user's permissions for a given queue.

Please feel free to use or contribute to it:

https://github.com/jlevitt/MSMQSecurity