Windows Vista Forums

Would somoeone tell the output from gps | gm > out on v1
  1. #1


    Bob Landau Guest

    Would somoeone tell the output from gps | gm > out on v1

    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





      My System SpecsSystem Spec

  2. #2


    RichS [MVP] Guest

    RE: Would somoeone tell the output from gps | gm > out on v1

    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
    >
    >

      My System SpecsSystem Spec

Would somoeone tell the output from gps | gm > out on v1 problems?

Similar Threads
Thread Thread Starter Forum Replies Last Post
VGA output to LCD tv roban248 Graphic cards 3 29 Oct 2009
Enexpected output when using output-csv ken444444 PowerShell 0 03 Sep 2008
Tv output, PAL Knut Vista music pictures video 14 29 Jul 2007
No output from write-output DouglasWoods PowerShell 3 13 Apr 2007
Help output: what do they mean by this? Lucvdv PowerShell 5 16 Nov 2006