If you have been using PowerShell for awhile you will know that there is a foreach-object cmdlet aliased as  foreach (or even the  abomination of %) and there is a foreach() PowerShell language statement.

Brandon blogged about the differences – the comments are well worth reading


Share this post :


Technorati Tags:

About these ads
This entry was posted in Powershell. Bookmark the permalink.

One Response to Foreach

  1. Stuart Henderson says:

    I read that a couple of days ago and I think it came up on the podcast too.The results of Brandons measure-command tests were something of arevelation to say the least!.Cheers,Stuart

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s