Find files owned by specific users in a shared directory/sub directories

Posted on 2012-08-15
Last Modified: 2012-08-15
Hi All,

I'm trying to get a list of files owned by specific users in a network share on server 2008 R2.
Tried icacls <path> /findsid <username> but this is incorrect.

How can I do this and output the results to a file?
is there a command or powershell method for this?

Thank you.
Question by:sid20vt

    Accepted Solution

    Found this utility:
    file searcher by owner from

    Works well.
    LVL 9

    Expert Comment

    Was going to say, something like this would work in PowerShell as well, you could filter the results as appropriate:

    $NetworkSharePath = "X:\Technical\"
    $Files = gci $NetworkSharePath -recurse | ? {$_.PsIsContainer -eq $False}
    foreach ($File in $Files)
    	Write-Host "Processing File: $($File.FullName)"
    	$File | Add-Member -MemberType "NoteProperty" -Name "Owner" -Value (($File | Get-Acl).Owner.ToString())
    $Files | Select FullName, Owner

    Open in new window


    Featured Post

    Highfive + Dolby Voice = No More Audio Complaints!

    Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

    Join & Write a Comment

    Why would I want to create a function for tracking messages? I am glad you asked. As with most monotonous/routine tasks, human error tends to creep in after doing the same task over and over again. By creating a function, you load the function once…
    This article shows how a content item can be identified directly or through translation of a navigation type. It then shows how this information can be used to create a menu for further navigation.
    This tutorial will show how to push an installation of Backup Exec to an additional server in both 2012 and 2014 versions of the software. Click on the Backup Exec button in the upper left corner. From here, select Installation and Licensing, then I…
    This tutorial will walk an individual through the steps necessary to configure their installation of BackupExec 2012 to use network shared disk space. Verify that the path to the shared storage is valid and that data can be written to that location:…

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now