Recently, I came across an interesting bug in PowerShell. Let’s create a repro. First, we create a string “a” and generate an xml based representation of it using the Export-Clixml cmdlet. Since we need to have the class id, we pipe the string to format-table as shown in the example below. PS> "a" | format-table -auto | Export-Clixml a.xml Here is the content of the xml file. <Objs
Read More...
Read the complete post at http://blogs.msdn.com/powershell/archive/2010/02/11/workaround-to-catch-exceptions-from-import-clixml.aspx
Posted
Feb 11 2010, 01:29 PM
by
Windows PowerShell Blog