< Back

Import-PSFClixml

Sun Jan 19, 2020 6:41 pm

NAME Import-PSFClixml



SYNOPSIS

Imports objects serialized using Export-Clixml or Export-PSFClixml.





SYNTAX

Import-PSFClixml [-Path] <String[]> [-Encoding <EncodingParameter>] [<CommonParameters>]





DESCRIPTION

Imports objects serialized using Export-Clixml or Export-PSFClixml.



It can handle compressed and non-compressed exports.





PARAMETERS

-Path <String[]>

Path to the files to import.



Required? true

Position? 1

Default value

Accept pipeline input? true (ByValue, ByPropertyName)

Accept wildcard characters? false



-Encoding <EncodingParameter>

Text-based files might be stored with any arbitrary encoding chosen.

By default, this function assumes UTF8 encoding (the default export encoding for Export-PSFClixml).



Required? false

Position? named

Default value (Get-PSFConfigValue -FullName 'psframework.text.encoding.defaultread' -Fallback

'utf-8')

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Import-PSFClixml -Path '.\\object.xml'



Imports the objects serialized to object.xml in the current folder.











RELATED LINKS