2016-08-04 46 views

回答

0

這將做到這一點

get-childitem c:\users\usera\documents -Recurse | foreach{ 
    $f = $_.FullName 
    $o = Get-Acl $f | Select -ExpandProperty Owner 
    Write-Output "$f is owned by $o" 
} 
+0

Thanku !!!它的工作 –

+0

有沒有辦法讓我可以得到用戶的細節以及文件和子文件夾的所有者? –

+0

你想查找關於用戶的詳細信息? – Junaid