PowerShell if/elseif/else examples

# ForEach loop write-host "`nForEach example" ForEach ($i in 1..10) { Write-Host "$i" } # while.ps1 write-host "`nWhile loop example" $i=1 while ($i -le 10) { Write-Host $i $i++ } PowerShell Selection Control – if/elseif/else statements 5 # do/while loop $env:COMPUTERNAME = Read-Host 'Please enter hostname' ................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download