ConvertTo-XML - 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.
Short description Creates an XML-based representation of an object. Syntax ConvertTo-XML [-InputObject] <psobject> [-As <string>] [-Depth <int>] [-NoTypeInformation] [<CommonParameters>] Description The ConvertTo-Xml cmdlet creates an XML-based representation of one or more Microsoft .NET Framework objects. To us e this cmdlet, pipe one or more objects to the cmdlet, or use the InputObject parameter to specify the object. When you pipe multiple objects to ConvertTo-XML or use the InputObject parameter to submit multiple objects, Conver tTo-XML returns a single XML document that includes representations of all of the objects. This cmdlet is similar to Export-Clixml except that Export-Clixml stores the resulting XML in a file. ConvertTo-XML returns the XML, so you can continue to process it in Windows PowerShell.