Import-Clixml

Import a CLIXML file and create corresponding objects within PowerShell.

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

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

   CommonParameters:
       -Verbose, -Debug, -ErrorAction, -ErrorVariable, -WarningAction, -WarningVariable,
       -OutBuffer -OutVariable.

Examples

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 © SS64.com 1999-2019
Some rights reserved