Foreach

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 http://bsonposh.com/archives/327#comments

 

Share this post :

 

Technorati Tags:

Leave a Reply