Get MSMQ (Message Queuing) queues with Powershell | I do stuff sometimes.

Ramblings about things.

Get MSMQ (Message Queuing) queues with Powershell

Simple, yet effective.
Especially if you don’t have the MSMQ module for PS.

$queues = Get-WmiObject -computername "YourServer" Win32_PerfFormattedData_msmq_MSMQQueue 
$queues | ft -AutoSize -property Name,MessagesInQueue

– F


Post a Comment

  • Archives