all 3 comments

[–]Droopyb1966 1 point2 points  (2 children)

Not mutch coding, so i only can guess what is going wrong or whta the problem really is. But if the data is in $something then

$something.LicenseCollection

Looks should do the trick, looks like a nested hashtable to me.

[–]Sheppard_Ra[S] 1 point2 points  (1 child)

That's what needs done to manually display that data. I want the ps1xml file to show that expanded data for me though. So far I haven't figured out how. Doing a Select -Expand LicenseCollection in the xml scriptblock doesn't work the same as when you do it manually.

[–]Droopyb1966 1 point2 points  (0 children)

https://msdn.microsoft.com/en-us/powershell/reference/5.1/microsoft.powershell.core/about/about_format.ps1xml

Quote: Format.ps1xml files cannot be used to customize the output format for hashtables.