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}}
的奥尔和ACL,但使用-Recurse
给我空的所有者和Accesstostring
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}}
为什么gci
正在发送的东西阿龙管道在不同? 我该如何解决这个问题? (我不想制作一个阵列,因为它不适合内存)
任何想法如何通过只调用一次Get-Acl来加快速度? –