Contact Info

Crumbtrail

ActiveXperts.com » Administration » Powershell » Powershell 2.0 » ConvertTo-XML

ConvertTo-XML - 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 »

ConvertTo-XML

Short description
Creates an XML-based representation of an object.

Syntax


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.