This also works
Get-Process | Get-Member | Out-String > out
Get-Process > out
works as well.
Wonder if its to do with the default formatting for get-member
--
Richard Siddaway
All scripts are supplied "as is" and with no warranty
PowerShell MVP
Blog:
http://richardsiddaway.spaces.live.com/
PowerShell User Group:
http://www.get-psuguk.org.uk
"Bob Landau" wrote:
> I no longer have a machien that has v2 on I suppose I should create a VM just
> for regression checking.
>
> If I do this
> Get-Process | Get-Member > out
>
> the output is corrupt all I see is \r\n
>
> $strm = new-object io.streamreader('out')
> $stuff = $strm.readtoend()
> [int[]][char[]]$stuff
>
> If I do what I thought was exactly the same
>
> Get-Process | Get-Member | Out-Host out
>
> I do get the ouput from Get-Member piped to the file
>
>