Kruthika Reddy Kruthika Reddy - 1 year ago 205
PowerShell Question

" list of files and subfoldes owner information" with powershelll script

I can see some in this link""

I tried but the examples but neither of them was working for me.Thanku!!!

Answer Source

This will do it

get-childitem c:\users\usera\documents -Recurse | foreach{
    $f = $_.FullName
    $o = Get-Acl $f | Select Owner -ExpandProperty Owner
    Write-Output "$f is owned by $o"
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download