Back to Browse

PowerShell S2E12 (Do / While)

866 views
Aug 21, 2020
6:06

*How to use while and do while loops in powershell *powershell *do{} while() *while() do{} In this video I teach you the differences In while and do while loops in powershell Code: do { echo "do something" Start-Sleep 1 } while(Get-Process notepad -ErrorAction SilentlyContinue) echo "notepad was not running" while (Get-Process notepad -ErrorAction SilentlyContinue){ echo "do something" Start-Sleep 1 }

Download

1 formats

Video Formats

360pmp49.7 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

PowerShell S2E12 (Do / While) | NatokHD