Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

Expand multiple embedded objects with -expandproperty

$
0
0

Hey all..

 

I have a cmdlet where i'm trying to use -expandproperty but im failing miserabley...

 

This is for the netapp powershell toolkit but basically there is a object securityrules

 

So it looks like get-nanfsexport | Select Pathname -expandproperty securityrules  

But what happens is there is another embedded object 

 

The output looks like this

Pathname        : /vol/vol0

Anon            :

Nosuid          : True

ReadOnly        : {all-hosts}

ReadWrite       : {host1,host2,host3}

Root            : {host1}

SecFlavor       : {sys}

NosuidSpecified : True

 

So i'm having trouble with the embedded objects

 

The ulimate goal is to have this

 

path   readwrite root

/vol/vol0  host1,host2,host3   host1

 

Any insight would be great

 


Viewing all articles
Browse latest Browse all 6937

Trending Articles