diff --git a/images/win/scripts/SoftwareReport/SoftwareReport.Common.psm1 b/images/win/scripts/SoftwareReport/SoftwareReport.Common.psm1 index 2f6ca4c5..83c441ce 100644 --- a/images/win/scripts/SoftwareReport/SoftwareReport.Common.psm1 +++ b/images/win/scripts/SoftwareReport/SoftwareReport.Common.psm1 @@ -111,9 +111,7 @@ function Get-NodeVersion { } function Get-ChocoVersion { - ($(choco version) | Out-String) -match "v(?\d+\.\d+\.\d+)" | Out-Null - $chocoVersion = $Matches.Version - return "Chocolatey $chocoVersion" + return "Chocolatey $(choco --version)" } function Get-VcpkgVersion {