diff --git a/scripts/capture-hw-details.sh b/scripts/capture-hw-details.sh index c0e8f00678..8e9d425012 100755 --- a/scripts/capture-hw-details.sh +++ b/scripts/capture-hw-details.sh @@ -20,7 +20,17 @@ done function libigc_version { if [[ $OSTYPE = msys ]]; then - powershell -Command "(Get-ChildItem c:/Windows/System32/DriverStore/FileRepository/*/igc64.dll).VersionInfo.ProductVersion" + pwsh -Command ' + $igc = @(Get-Process -Name dwm -Module | Where-Object ModuleName -eq 'igc64.dll').FileVersionInfo.FileVersion | Sort-Object -Unique + if ($igc.Count -gt 1) { + Write-Host "MULTIPLE" + } + elseif ($igc.Count -eq 1) { + Write-Host $igc + } + else { + Write-Host "Not Found" + }' return fi if dpkg-query --show libigc2 &> /dev/null; then