0
ファイルシステムのインベントリを作成しようとしています。gciとgci -recurveには異なる種類の出力があります。
これは動作しますが、それは
Get-ChildItem \\Server\Share\* | Select-Object @{n='Path';e={ (Get-Item $_.PSPath).FullName }}, PSIsContainer, @{n='Owner';e={ (Get-Acl $_).Owner}}, @{n='Accesstostring';e={ (Get-Acl $_).Accesstostring}}
私に各エントリのowerとACLを与える。しかし-Recurse
を使用すると、私は空の所有者を与え、なぜgci
がパイプALON別の何かを送っているん
Get-ChildItem \\Server\Share\ -Recurse | Select-Object @{n='Path';e={ (Get-Item $_.PSPath).FullName }}, PSIsContainer, @{n='Owner';e={ (Get-Acl $_).Owner}}, @{n='Accesstostring';e={ (Get-Acl $_).Accesstostring}}
をAccesstostring ? これをどのように修正できますか? (メモリに収まらないので配列を作成したくありません)
Get-Aclを一度呼び出すだけで、どのようにスピードアップできますか? –