且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在MSMQ群集队列上设置权限?

更新时间:2023-01-28 08:05:57

来自:在使用messageQueue之前,您必须设置集群网络名称环境变量.

You have to set the cluster network name environment variable before using messageQueue.

$env:_CLUSTER_NETWORK_NAME_ = 'myclusterMSMQ'
[System.Messaging.MessageQueue]::Create('.\Private$\MyQueue')

将群集网络名称添加到脚本顶部应该可以解决问题

Adding the cluster network name to top of script should solve the problem

链接到我提供的完整脚本(简单化-但可用于简单地创建和分配烫发脚本),作为对另一个问题的解答. https://***.com/a/11268755/761599

Link to the full (simplistic - but works for simple creation and assignment of perms) script I provided as an answer to another question. https://***.com/a/11268755/761599