Skip to content

Latest commit

 

History

History
13 lines (9 loc) · 672 Bytes

File metadata and controls

13 lines (9 loc) · 672 Bytes

If a ScriptBlock is exported by Export-Clixml then it is represented by the special XML element SBK in the result file. This may look like a script block is designed to be persisted with its type preserved. This is not the case. When the data are imported by Import-Clixml a script block is rehydrated as String.

The script Test-1.ps1 shows the issue.