在脚本中设置 MSMQ 队列的权限 [英] Setting permissions on a MSMQ queue in a script

查看:33
本文介绍了在脚本中设置 MSMQ 队列的权限的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

谁能给我一些关于如何在脚本中设置 MSMQ 队列权限的指示,最好是 PowerShell,但我会使用 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆