Get Queue Statistics

MSMQ.GetQueueStats.Task (Task)

Gets the real time statistics from the queue selected.

Element properties:

TargetMSMQ.Queue
AccessibilityInternal
CategoryMaintenance
EnabledTrue
RemotableFalse
Timeout300

Member Modules:

ID Module Type TypeId RunAs 
WA WriteAction MSMQ.TrimQueue.WA Default

Source Code:

<Task ID="MSMQ.GetQueueStats.Task" Accessibility="Internal" Enabled="true" Target="MSMQ.Queue" Timeout="300" Remotable="true">
<Category>Maintenance</Category>
<WriteAction ID="WA" TypeID="MSMQ.TrimQueue.WA">
<Computer>$Target/Host/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</Computer>
<QueuePath>$Target/Property[Type="MSMQ.Queue"]/PathName$</QueuePath>
<TrimLogic>statistics</TrimLogic>
<TimeoutSeconds>300</TimeoutSeconds>
</WriteAction>
</Task>