Quantcast
Channel: PowerShell.org » All Posts
Viewing all articles
Browse latest Browse all 13067

Reply To: Foreach loop

$
0
0

That’s in a nut shell how I got them in one one foreach loop.

So, is it not common belief that a pipe should be avoided in a script?
I am of the thought that they are not typically programmatic approaches but cmdline or shell like operators.

Is ForEach-Object the only way to process items returned from a cmdlet without consuming the entire result set first?
If one choose not to use pipes, could you still iterate over the return from say Get-MailBox, one mailbox at a time as they are returned?

Thanks for the insight Dave!


Viewing all articles
Browse latest Browse all 13067

Trending Articles