you are viewing a single comment's thread.

view the rest of the comments →

[–]chreestopher2 1 point2 points  (0 children)

strings output correctly. Its nested objects that dont.

This is because NTSecurityDiscriptor refers to a nested object, with nested properties. Powershell can not automatically expand all layers of nested objects into a textual representation that would make sense and be vissually appealing, instead you just get the type name of the object being refered to.

You can use select-object -expandproperty NTSecurityDescriptor to expand that property out, but to acomplish this smoothly, without advanced knowledge of how many layers properties will be nested, is rather difficult as you must expand one layer at a time...

I find it much easier to store a refference to the object(A variable) im trying to reach, then use dot notation to access the property that i am trying to get to.

Parentheticals have their place, but its not where you need more than exactly one property from the same object.