Quantcast
Channel: TechNet Blogs
Viewing all articles
Browse latest Browse all 17778

PowerTip: Display Progress Bar with PowerShell

$
0
0

Summary: Learn how to display a progress bar by using Windows PowerShell.

Hey, Scripting Guy! Question How can I easily display a progress bar by using Windows PowerShell?

Hey, Scripting Guy! Answer Use the Write-Progress cmdlet:

for ($i = 1; $i -le 100; $i++) {Write-Progress -Activity 'counting' -Status "

$i percent" -PercentComplete $i ; sleep -Milliseconds 20}


Viewing all articles
Browse latest Browse all 17778

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>