In this blog you can find: Useful and simple code snippets in the area of Dynamics CRM (T-SQL, PowerShell). Interesting topics about (TIBCO) Scribe Insight.

Tuesday, July 14, 2020

MSMQ - Add user privileges to queues via PowerShell

In PowerShell, the Set-MsmqQueueACL cmdlet can be used to modify the access rights of queues.

Sample - Add "FullControl" permission to user for all queues of type "Private":

Get-MsmqQueue -QueueType Private | Set-MsmqQueueAcl -UserName "domain\username" -Allow FullControl


Reference: https://docs.microsoft.com/en-us/powershell/module/msmq/set-msmqqueueacl


No comments:

Post a Comment

MSMQ - Add user privileges to queues via PowerShell

In PowerShell, the Set-MsmqQueueACL cmdlet can be used to modify the access rights of queues. Sample - Add "FullControl" permissi...