Merge pull request #5388 from Ylianst/fix-av-detection

fix multiple av detection
This commit is contained in:
Ylian Saint-Hilaire 2023-10-03 19:40:53 -07:00 committed by GitHub
commit 2045946eb3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -55,7 +55,7 @@ function av()
child.stdin.write('ForEach-Object -Process { '); child.stdin.write('ForEach-Object -Process { ');
child.stdin.write('$Bytes = [System.Text.Encoding]::UTF8.GetBytes($_.displayName); '); child.stdin.write('$Bytes = [System.Text.Encoding]::UTF8.GetBytes($_.displayName); ');
child.stdin.write('$EncodedText =[Convert]::ToBase64String($Bytes); '); child.stdin.write('$EncodedText =[Convert]::ToBase64String($Bytes); ');
child.stdin.write('Write-Host ("{0},{1}" -f $_.productState,$EncodedText); }\r\n'); child.stdin.write('Write-Output ("{0},{1}" -f $_.productState,$EncodedText); }\r\n');
child.stdin.write('exit\r\n'); child.stdin.write('exit\r\n');
child.waitExit(); child.waitExit();