简体   繁体   English

Msmq 队列权限如何使用 powershell 添加 iss AppPool

[英]Msmq Queue permission how to add a iss AppPool with powershell

New-MsmqQueue -Name "ThisIsTestName" -QueueType Private create a Queue New-MsmqQueue -Name "ThisIsTestName" -QueueType Private 创建队列

but how do i add an application iis apppool to a MSMQ queue with Powershell但是我如何使用 Powershell 将应用程序 iis apppool 添加到 MSMQ 队列

The manual way is add IIS AppPool\ThisIsTestName on Security fane手动方式是在 Security fane 上添加 IIS AppPool\ThisIsTestName

I only see guides that are about add user and set permission我只看到有关添加用户和设置权限的指南

\Lars Ole \拉尔斯·奥莱

I have this manual process.......我有这个手动过程.......

Go to the application pool list in the IIS Management Console and note the application pool name for the desired application Right-click on the MSMQ queue in Server Manager > Properties > Security Click Add Enter the object name IIS APPPOOL{application pool name from step 1}. Go to the application pool list in the IIS Management Console and note the application pool name for the desired application Right-click on the MSMQ queue in Server Manager > Properties > Security Click Add Enter the object name IIS APPPOOL{application pool name from step 1 }。 This should auto-complete to the name of the application pool Grant the required permissions - generally this will be Peek Message and/or Receive Message.这应该自动完成应用程序池的名称授予所需的权限 - 通常这将是 Peek Message 和/或 Receive Message。

but how do i do it with powershell但是我该怎么做 powershell

WebTestMSMQ is a apppool and billpay is a Queue name WebTestMSMQ 是一个应用程序池,而 billpay 是一个队列名称

Get-MsmqQueue -Name "billpay" -QueueType Private | Get-MsmqQueue -Name "billpay" -QueueType Private | Set-MsmqQueueAcl -UserName "IIS AppPool\WebTestMSMQ" -Allow FullControl Set-MsmqQueueAcl -UserName "IIS AppPool\WebTestMSMQ" -Allow FullControl

The Answer after run is private$\billpay IIS APPPOOL\MSMQService Allow FullControl运行后的答案是 private$\billpay IIS APPPOOL\MSMQService Allow FullControl

it finds itself IIS APPPOOL它发现自己 IIS APPPOOL

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM