Scripting >> Powershell >> Syntax >> Do While - Do Until - For - ForEach loops

Do While ======== $a=1 Do {$a, $a++} While ($a -lt 10) Do Until ======== $a=1 Do ($a, $a++} Until ($a -ht 10) For === For ($a=1; $a -le 10; $a++) {$a} ForEach ======= Foreach ($i in Get-Childitem c:\windows) {$i.name; $i.creationtime}