CmdID / PowerShell / Cmdlets / Receive
Receive-MsmqQueue
Does a destructive read from a queue. Windows Server PowerShell reference
From the Windows Server PowerShell reference 6 parameters Its page in the reference
Parameters
-CountSpecifies the number of messages to be returned.-InputObjectSpecifies a MessageQueue object.-PeekIndicates that this cmdlet returns a copy of the first message in the queue without removing the message from the queue.-RetrieveBodyIndicates that this cmdlet returns the body of the message.-TimeoutSpecifies the maximum time, in milliseconds, to wait for the queue to contain a message.-TransactionalIndicates that the cmdlet performs a transacted receive.