PowerShell - piping enumerable objects -


Specifically my example is with MSMQ queues, consider the following:

  add -Type system Messaging [System.Messaging.MessageQueue] :: GetPrivateQueuesByMachineName ('.') | GM  

Message is pipe is the message , not the MessageQueue objects themselves, like One can expect that I believe this because MessageQueue is enumerable.

How can I force PowerShell to pipe MessageQueue objects and prevent them from enumerating them?

You must be able to force PowerShell to preserve the form by prefixing the comma: < / P>

 , [System.Messaging.MessageQueue] :: GetPrivateQueuesByMachineName ('.') | Village  

Comments

Popular posts from this blog

sqlite3 - UPDATE a table from the SELECT of another one -

c# - Showing a SelectedItem's Property -

javascript - Render HTML after each iteration in loop -