Progress Bar with Powershell
[int]$t = 100000
#[int]$i = 0
for( $count = 1 ; $count -le 100000 ; $count++ )
{
#$i++ , $Site.Count // for some cases
Write-Progress –Activity “Collecting all sub webs” –status "In Progress on file $count :::: ToTal Percentage: $(($count / $t)*100)“ –percentComplete (($count/$t)*100)
}
