Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 170134

Re: Script to wait for Clone Task to complete

$
0
0

You can do that with the Write-Progress cmdlet. For example

 

$count=10
1..$count|%{    Write-Progress-Activity"Demo..."-PercentComplete ($_/$count*100) -Status"Progress"
    sleep1
}

 

But you will have to find a way to pass percentage to the PercentComplete parameter.

If you have 10 tasks, you could display the progress of the number of tasks complete.


Viewing all articles
Browse latest Browse all 170134

Trending Articles



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