Contact Info

Crumbtrail » Administration » Powershell » Powershell 2.0 » ConvertTo-CSV

ConvertTo-CSV - Powershell 2.0 CmdLet

ActiveXperts Network Monitor ships with integrated Powershell scripts to monitor complex network. The scripts run out of the box
Download the ActiveXperts Network Monitor FREE version now »


Short description
Converts Microsoft .NET Framework objects into a series of comma-separated value (CSV) variable-length strings.

ConvertTo-CSV [[-Delimiter] <char>] [-InputObject] <psobject> [-NoTypeInformation] [<CommonParameters>]
    ConvertTo-CSV [-UseCulture] [-InputObject] <psobject> [-NoTypeInformation] [<CommonParameters>]

The ConvertTo-CSV cmdlet returns a series of comma-separated, variable-length (CSV) strings that represents the obj
    ects that you submit. You can then use the ConvertFrom-CSV cmdlet to re-create objects from the CSV strings. The re
    sulting objects are CSV versions of the original objects that consist of string representations of the property val
    ues and no methods.
    You can also use the Export-CSV and Import-CSV cmdlets to convert .NET Framework objects to CSV strings (and back).
     Export-CSV is the same as ConvertTo-CSV, except that it saves the CSV strings in a file.
    You can use the parameters of the ConvertTo-CSV cmdlet to specify a delimiter other than a comma or to direct Conve
    rtTo-CSV to use the default delimiter for the current culture. 
    For more information, see Export-CSV, and see the Notes section.