Can anyone give me some pointers on how to set permissions on MSMQ queues in script, preferably PowerShell, but I'd use VBscript
相关问题
- How to Debug/Register a Permanent WMI Event Which
- Django check user group permissions
- How can I do variable substitution in a here-strin
- How to use a default value with parameter sets in
- Does powershell have a method_missing()?
相关文章
- 在vscode如何用code runner打开独立的控制台窗口,以及设置好调试模式时窗口的编码?
- C#调用PowerShell的问题
- EscapeDataString having differing behaviour betwee
- Flutter - http.get fails on macos build target: Co
- PowerShell Change owner of files and folders
- Can a VBScript function return a dictionary?
- Command line escaping single quote for PowerShell
- Is there a simple way to pass specific *named* Pow
Windows 2012 and 8.1 now have MSMQ cmdlets. The one to set the permissions on a queue is: Set-MsmqQueueAcl
There's nothing built into powershell for this, but you can use the .NET framework classes. Just load System.Messaging.dll and use MessageQueue.SetPermissions() to change the ACL on the queue.
And here's some example PowerShell including setting the permissions ... sorry about the length
A present (2015) day answer to this question.
Example:
Applies To: Windows 8.1, Windows PowerShell 4.0, Windows Server 2012 R2
Reference: https://technet.microsoft.com/en-us/library/dn391735(v=wps.630).aspx