ConvertTo-CSV - Powershell 2.0 CmdLet
Microsoft Windows PowerShell is a command-line shell and scripting tool based on the Microsoft .NET Framework. It is designed for system administrators, engineers and developers to control and automate the administration of Windows and applications.
More than hundred command-line tools (so called "cmdlets") can be used to perform system administration tasks and Windows Management Instrumentation (WMI). These cmdlets are easy to use, with standard naming conventions and common parameters, and standard tools for piping, sorting, filtering, and formatting data and objects.
ConvertTo-CSV
Short description Converts Microsoft .NET Framework objects into a series of comma-separated value (CSV) variable-length strings. Syntax ConvertTo-CSV [[-Delimiter] <char>] [-InputObject] <psobject> [-NoTypeInformation] [<CommonParameters>] ConvertTo-CSV [-UseCulture] [-InputObject] <psobject> [-NoTypeInformation] [<CommonParameters>] Description 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.