Windows Vista Forums

Strange output
  1. #1


    Jsimpson Guest

    Strange output

    I am new to working with the exchange tools, do the export
    differently?

    Get-mailbox | ft Name, MaxSendSize, MaxReceiveSize | Export-Csv -
    NoTypeInformation -Path c:\scripts\sendsize.csv

    Gives me this:

    ClassId2e4f51ef21dd47e99d3c952918aff9cd pageHeaderEntry
    pageFooterEntry autosizeInfo shapeInfo groupingEntry
    033ecb2bc07a4d43b5ef94ed5a35d280
    Microsoft.PowerShell.Commands.Internal.Format.TableHeaderInfo
    9e210fe47d09416682b841769c78b8a3
    27c87ef9bbda4f709f6b4002fa4af63c

    instead of what I see on the screen



    Name
    MaxSendSize MaxReceiveSize
    ----
    ----------- --------------
    Administrator
    unlimited unlimited
    User1
    10000KB 10000KB
    User2
    unlimited unlimited

    What am I seeing?

      My System SpecsSystem Spec

  2. #2


    Shay Levy [MVP] Guest

    Re: Strange output

    Hello Jsimpson,

    All format-* cmdlets are designed to convert objects to text for console
    display. Generally, don't use them in a middle of a pipline command.
    Instead use select-object to include just the properties you want and pipe
    them to export csv:

    Get-mailbox | select-object Name, MaxSendSize, MaxReceiveSize | Export-Csv
    -NoTypeInformation -Path c:\scripts\sendsize.csv


    ---
    Shay Levy
    Windows PowerShell MVP
    http://blogs.microsoft.co.il/blogs/ScriptFanatic
    PowerShell Toolbar: http://tinyurl.com/PSToolbar


    J> I am new to working with the exchange tools, do the export
    J> differently?
    J>
    J> Get-mailbox | ft Name, MaxSendSize, MaxReceiveSize | Export-Csv -
    J> NoTypeInformation -Path c:\scripts\sendsize.csv
    J>
    J> Gives me this:
    J>
    J> ClassId2e4f51ef21dd47e99d3c952918aff9cd pageHeaderEntry
    J> pageFooterEntry autosizeInfo shapeInfo groupingEntry
    J> 033ecb2bc07a4d43b5ef94ed5a35d280
    J> Microsoft.PowerShell.Commands.Internal.Format.TableHeaderInfo
    J> 9e210fe47d09416682b841769c78b8a3 27c87ef9bbda4f709f6b4002fa4af63c
    J>
    J> instead of what I see on the screen
    J>
    J> Name
    J> MaxSendSize MaxReceiveSize
    J> ----
    J> ----------- --------------
    J> Administrator
    J> unlimited unlimited
    J> User1
    J> 10000KB 10000KB
    J> User2
    J> unlimited unlimited
    J> What am I seeing?
    J>



      My System SpecsSystem Spec

Strange output

Similar Threads
Thread Thread Starter Forum Replies Last Post
Strange print output from Windows Photo Gallery Ingi Vista print fax & scan 1 21 Dec 2008
Enexpected output when using output-csv ken444444 PowerShell 0 03 Sep 2008
Tv output, PAL Knut Vista music pictures video 14 29 Jul 2007
switching between back & front output - very strange Pieka Vista hardware & devices 7 22 May 2007
No output from write-output DouglasWoods PowerShell 3 13 Apr 2007