Unable to execute Write-Progress with POSHTOOLS 5.0.1

Issue #201 resolved
Eugene Kazakov created an issue

Simple script

Write-Progress -Activity "a" -Status "b" -Id 1 -PercentComplete 1

failed when I run it from Visual Studio 2019 with error

Write-Progress : Value cannot be null.
Parameter name: value
At C:\Users\mashkovda\source\repos\SLAssessmentCore\SLAssessmentCore\Do-Discove
ry.ps1:6 char:2

  • Write-Progress -Activity "a" -Status "b" -Id 1 -PercentComplete 1
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    • CategoryInfo : NotSpecified: (:) [Write-Progress], ArgumentNull
      Exception
    • FullyQualifiedErrorId : System.ArgumentNullException,Microsoft.PowerShel
      l.Commands.WriteProgressCommand

POSHTOOLS 5.0.1
Visual Studio 2019 16.3.7

\$PSVersionTable

Name Value


PSVersion 5.1.18362.145
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.18362.145
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1

Comments (2)

  1. Log in to comment