Progressbar while Job
Forum rules
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Re: Progressbar while Job
It works correctly for me. As swoon as the function completes the progress will end. You will not likely see the last message unless you place a pause before the end of the function.
Re: Progressbar while Job
You can't call it on a stopped service. You can modify the function to check the service first,
I created that as an example but you will have to learn PowerShell to understand it and use it in your code.
I created that as an example but you will have to learn PowerShell to understand it and use it in your code.