How to set Job Percent Complete?

I want to set the percent complete for a running job. By default it sits at 0% for the duration. I tried the following in my script, but now the percent complete disappears from the screen:

$UAJob.PercentComplete = “50”

Product: PowerShell Universal
Version: 1.5.16

You can use Write-Progress to set the completion percent. UA automatically hooks into the PS host and should display whatever percentage you pass in there.

1 Like

Thanks, Adam!