0
我有下面的脚本从C:驱动器检索特定的文件类型,并输出特定的文件属性到分隔的CSV文件。我希望能够检索文件的所有者和作者。很感谢任何形式的帮助。获取文件所有者/作者
# PowerShell script to list the .xlsx files under the C Drive
$Dir = get-childitem "C:" -recurse -force
$List = $Dir | where {$_.extension -eq ".xlsx"}
$List |Select-Object fullname, LastAccessTime, LastWriteTime, CreationTime |Export-Csv -path C:\Scripts\xlsx.csv -NoTypeInformation