Hi,
Could you add countdown timer for that 300/180/30 sec times? It would be nice to see how much more to go?
Something like this
https://1drv.ms/u/s!AmwHZ3fXi4jhgaZ3e_61KUFMmaCjqQFunction Start-Countdown
{ #>
Param(
[Int32]$Seconds = 300,
[string]$Message = "Mining for 300 seconds..."
)
ForEach ($Count in (1..$Seconds))
{ Write-Progress -Id 1 -Activity $Message -Status "Waiting for $Seconds seconds, $($Seconds - $Count) left" -PercentComplete (($Count / $Seconds) * 100)
Start-Sleep -Seconds 1
}
Write-Progress -Id 1 -Activity $Message -Status "Completed" -PercentComplete 100 -Completed
}
Start-Countdown -Seconds 300 -Message "Mining..."
(c) Martin9700 @
www.spiceworks.com