ForEach in Powershell
ForEach - Loop statement
Syntax is as below.
ForEach (item In collection) {ScriptBlock}
item: A variable to hold the current item
collection: A collection of objects e.g. filenames, registry keys, servernames
ScriptBlock: A block of script to run against each object.
Thanks,
Have Fun!
The source: http://ss64.com/ps/foreach.html
댓글
댓글 쓰기