The following script shows the problem: # new OrderedDictionary $t1 = [ordered] @{p1=11; p2=22; p3=33} # it is OrderedDictionary $t1.GetType().Name # export $t1 | Export-Clixml z1.clixml # import $t2 = Import-Clixml z1.clixml # it is not OrderedDictionary, it is Hashtable $t2.GetType().NameActual output: OrderedDictionary HashtableExpected output: OrderedDictionary OrderedDictionary
Have you seen this problem before in this product?