PS C:\> $array
ReadWrite(AllHostsSpecified) :
ReadOnly(AllHostsSpecified) :
ReadWrite(NegateSpecified) :
ReadWrite(Negate) :
SecFlavor : sys
ActualPathname :
ReadOnly(AllHosts) :
ReadOnly(Name) :
ReadWrite(Name) :
Anon :
Root : {vin1,vin2,vin3,vin4...}
ReadOnly(NegateSpecified) :
ReadWrite(AllHosts) :
NosuidSpecified : False
Nosuid :
ReadOnly(Negate) :
Pathname : /vol/vin_binaries
嗨,伙计们,我有属性根,它是一个动态属性,可以从 (vin1,vin2,vin3,vin4.......) 变化,甚至可以无穷无尽。
现在,当我执行 export-csv 时,我需要如下获取输出对象
ReadWrite(AllHostsSpecified) :
ReadOnly(AllHostsSpecified) :
ReadWrite(NegateSpecified) :
ReadWrite(Negate) :
SecFlavor : sys
ActualPathname :
ReadOnly(AllHosts) :
ReadOnly(Name) :
ReadWrite(Name) :
Anon :
Root (Property 1) : vin1
Root (Property 1) : vin2
Root (Property 1) : vin3
Root (Property 1) : vin4
.
.
.
.
Root (Property n) : vinn
ReadOnly(NegateSpecified) :
ReadWrite(AllHosts) :
NosuidSpecified : False
Nosuid :
ReadOnly(Negate) :
Pathname : /vol/vin_binaries
有没有办法可以做到这一点?就像在 for 循环中迭代 Root 的所有属性???