创建具有包含派生文件系统路径信息的自定义属性的对象,并将它们导出到csv计算的属性中。
Get-ChildItem
Folder
Foldername
)?
path, user
,Name
select
,Name
,folder
,foldername
select
ForEach-Object {$_ | Add-Member -Name "Owner" -MemberType NoteProperty -Value (Get-Acl $_.FullName).Owner -PassThru} | Sort-Object fullname | Select FullName,CreationTime,LastWriteTime,Owner,Name,Folder,Foldername
相关分类