How to see output of invoke expression - IO.MemoryStream

时间:2018-02-01 18:27:50

标签: windows powershell

$s=New-Object IO.MemoryStream(,[Convert]::FromBase64String("some base64 string here"));

IEX( New-Object IO.StreamReader(
        New-Object IO.Compression.GzipStream(
           $s,[IO.Compression.CompressionMode]::Decompress) 
)).ReadToEnd();

How can I see the IEX's output?

0 个答案:

没有答案