Kansa icon indicating copy to clipboard operation
Kansa copied to clipboard

Get-WebrootListing.ps1 output needs to be ASCII encoded

Open jt-msft opened this issue 9 years ago • 1 comments

Received an error from Logparser when trying to analyze output from Get-WebrootListing.ps1 module that "some bytes remained undecoded" which blocked results. Re-encoding the output files to ASCII allowed Logparser to read them correctly.

Probably a bug in Logparser, but we can implement a workaround here.

jt-msft avatar Aug 13 '15 16:08 jt-msft

Can you try adding this line before the objects are returned and see if it fixes it? I don't have a web server handy to test against:

$OutputEncoding = [System.Text.Encoding]::ASCII

davehull avatar Sep 12 '15 05:09 davehull