简体   繁体   English

监视 MSMQ 传出队列?

[英]monitoring the MSMQ outgoing queue?

I am trying to monitor the outgoing queue of several servers with a script but can't find the right name / path to do so.我正在尝试使用脚本监视多个服务器的传出队列,但找不到正确的名称/路径。

here is what i tried :这是我尝试过的:

formatName:Direct=OS:Servername\\outgoing_queue$ formatName:Direct=OS:Servername\\outgoing_queue$

got the following error : « Format name is invalid.收到以下错误:« 格式名称无效。 » »

formatName:Direct=OS:servername\\outgoing_queue$ formatName:Direct=OS:servername\\outgoing_queue$

Error : « A workgroup installation computer does not support the operation.错误:« 工作组安装计算机不支持该操作。 » »

.\\outgoing_queue$ .\\outgoing_queue$

error: « A workgroup installation computer does not support the operation.错误:« 工作组安装计算机不支持该操作。 » »

Does anyone here experience that ?这里有人经历过吗? Do you know where i can find the right name / path to monitor that queue ?你知道我在哪里可以找到正确的名称/路径来监控那个队列吗?

You can use the cmdlet Get-MsmqOutgoingQueue:您可以使用 cmdlet Get-MsmqOutgoingQueue:

Get-MsmqOutgoingQueue -Name "Name of the queue, wildcards supported"

This cmdlet gets outgoing queues that are local to the computer on which you run the cmdlet.此 cmdlet 获取运行 cmdlet 的计算机本地的传出队列。 If you do not specify parameters, this cmdlet gets all outgoing queues of the host computer.如果不指定参数,此 cmdlet 将获取主机计算机的所有传出队列。

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

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