Export-Clixml converts PowerShell objects into a CLI XML file that PowerShell can later use to reconstruct the original objects, or something very close. section 6.2.3
Export and reimport processes
Try `Get-Process | Export-Clixml processes.clixml`, then read the file with `Import-Clixml processes.clixml`. Open the resulting XML in a text editor to inspect its format. section 6.2.3
Choose this format when PowerShell object fidelity matters, while remembering its trade-offs:
- CLIXML is usually larger than simpler export formats and is specific to PowerShell. section 6.2.3
- On Windows, security-related portions are encrypted for the creating user or machine. section 6.2.3
- Read an Export-Clixml file with Import-Clixml rather than Get-Content when you want PowerShell to interpret the data. section 6.6
