fix multiple av detection

Signed-off-by: Simon Smith <simonsmith5521@gmail.com>
This commit is contained in:
Simon Smith 2023-10-03 13:12:26 +00:00
parent 2d8c3cfc64
commit 489f1aa57a

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();