From 489f1aa57a45c1cc9b422d2c213d7691e89289ea Mon Sep 17 00:00:00 2001 From: Simon Smith Date: Tue, 3 Oct 2023 13:12:26 +0000 Subject: [PATCH] fix multiple av detection Signed-off-by: Simon Smith --- agents/modules_meshcore/win-info.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agents/modules_meshcore/win-info.js b/agents/modules_meshcore/win-info.js index 4b0e8f98..381a337e 100644 --- a/agents/modules_meshcore/win-info.js +++ b/agents/modules_meshcore/win-info.js @@ -55,7 +55,7 @@ function av() child.stdin.write('ForEach-Object -Process { '); child.stdin.write('$Bytes = [System.Text.Encoding]::UTF8.GetBytes($_.displayName); '); 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.waitExit();