Import-Clixml

 

Additional Resources for Import-Clixml

 

Reading in an XML File

http://www.microsoft.com/technet/scriptcenter/topics/msh/cmdlets/import-clixml.mspx

 

 

SYNOPSIS

Imports a CLIXML file and creates corresponding objects within Windows PowerShell.

 

SYNTAX

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

 

DETAILED DESCRIPTION

Imports a CLIXML file and creates corresponding objects within Windows PowerShell.

 

PARAMETERS

 

-path <string[]>

Specifies the location of the XML files to be converted into PSObjects.

 

Required?

true

Position?

1

Default value

 

Accept pipeline input?  

true (ByValue, ByPropertyName)

Accept wildcard characters? 

true

 

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, and -OutVariable. For more information, type, "get-help about_commonparameters".

 

INPUT TYPE

None

 

RETURN TYPE

PSObjects

 

NOTES

 

For more information, type "Get-Help Import-Clixml -detailed". For technical information, type "Get-Help Import-Clixml -full".

 

When specifying multiple values for a parameter, use commas to separate the values. For example, "<parameter-name> <value1>, <value2>".

 

EXAMPLE 1

 

get-process | export-clixml pi.xml

$processes = import-clixml pi.xml

 

This command uses the Export-Clixml cmdlet to save a serialized copy of the process information returned by Get-Process. It then uses Import-Clixml to retrieve the contents of the serialized file and recreate an object that is stored in the $processes variable.

 

RELATED LINKS

Export-Clixml

 

 

 

500 Internal Server Error

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at webmaster@systemmanager.forsenergy.ru to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.