在脚本中的MSMQ队列上设置权限 [英] Setting permissions on a MSMQ queue in a script
本文介绍了在脚本中的MSMQ队列上设置权限的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
任何人都可以给我一些关于如何在脚本(最好是PowerShell)中设置MSMQ队列权限的建议,但是我会使用VBscript
Can anyone give me some pointers on how to set permissions on MSMQ queues in script, preferably PowerShell, but I'd use VBscript
推荐答案
当前(2015年)该问题的答案.
A present (2015) day answer to this question.
示例:
New-MsmqQueue -Name "MyQueue" -QueueType Private
Get-MsmqQueue -Name "MyQueue" -QueueType Private |
Set-MsmqQueueAcl -UserName "Everyone" -Allow FullControl
适用于:Windows 8.1,Windows PowerShell 4.0,Windows Server 2012 R2
Applies To: Windows 8.1, Windows PowerShell 4.0, Windows Server 2012 R2
参考: https://technet.microsoft .com/en-us/library/dn391735(v = wps.630).aspx
这篇关于在脚本中的MSMQ队列上设置权限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文