Import a CLIXML file and create corresponding objects within PowerShell.

      Import-Clixml [-path] string[] [CommonParameters]]

   -Path string[]
       The path to the XML files {may be piped}


Save a serialized copy of process information to an XML file, then use Import-Clixml to retrieve the contents of the file and recreate as an object stored in the $processes variable.

PS C:> get-process | export-clixml proc.xml
$processes = import-clixml proc.xml

“The real danger is the gradual erosion of individual liberties through the automation, integration, and interconnection of many small, separate record-keeping systems, each of which alone may seem innocuous, even benevolent, and wholly justifiable” ~ U.S. Privacy Protection Study Commission, 1977

Related PowerShell Cmdlets:

export-clixml - Produce a clixml representation of PowerShell objects.
export-csv - Export to Comma Separated Values (spreadsheet).
convertTo-Html - Convert the input into an HTML table.

Copyright © 1999-2020
Some rights reserved