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
Post a Comment