Prerequisites
Steps to reproduce
When enabling AMSI debug logging the log is written to stdout, this mixes in with the success stream. It should be written to stderr.
Expected behavior
When $env:__PSDumpAMSILogContent='1' is set the extra logging should go to stderr
Actual behavior
When $env:__PSDumpAMSILogContent='1' is set the extra logging goes to stdout
Error details
no error other reported by system
Environment data
Name Value
---- -----
PSVersion 7.4.2
PSEdition Core
GitCommitId 7.4.2
OS Debian GNU/Linux 11 (bullseye)
Platform Unix
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Visuals
=== Amsi notification report content ===
<System.Byte[]>.new(<2048>)
=== Amsi notification report success: False ===
Prerequisites
Steps to reproduce
When enabling AMSI debug logging the log is written to stdout, this mixes in with the success stream. It should be written to stderr.
Expected behavior
When $env:__PSDumpAMSILogContent='1' is set the extra logging should go to stderrActual behavior
When $env:__PSDumpAMSILogContent='1' is set the extra logging goes to stdoutError details
no error other reported by systemEnvironment data
Visuals