Contact Info

Crumbtrail

ActiveXperts.com » Administration » Powershell » Powershell 1.0 » Import-Clixml

Import-Clixml - Powershell 1.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.

Import-Clixml

Description
Import a clixml file and rebuild the PS object

Usage


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

   CommonParameters:
       -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutVariable.

Example(s)
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