I am interested in this too...
Would like to be able to compile a report of who owns what files/folders in a shared area
OR
go one step further and move/copy files/folder owned by particular users to another location.
Is it possible to search a shared area on the network and only display files with a particular user as the owner? There are 100000s of files in this particular area and searching all of them and sorting by user is a VERY long process, so I'd like to know if there is a program that will allow me to do this.
I am interested in this too...
Would like to be able to compile a report of who owns what files/folders in a shared area
OR
go one step further and move/copy files/folder owned by particular users to another location.
I wrote a batch file a little while ago to do something similar.
It was a rush job, so the coding could probably be improved a lot. I will leave that as an exercise for the reader.
Anyway, if it's useful, here it is.
@echo off
echo.>list.txt
set /p $search=String to search for (e.g. user123):
for /F "usebackq delims=," %%d in (`dir /b /s *`) do (
echo Checking file %%d
cacls "%%d" > acls
for /f "tokens=2 delims=:" %%a in ('FIND /I /C "%$search%" "acls" 2^>NUL') do call :perms %%a
)
del acls
notepad list.txt
goto :eof
:perms
set count=%~1
if [%count%] EQU [0] goto :eof
::add to file
echo.>>list.txt
type acls >> list.txt
echo.>>list.txt
We bought TreeSize Professional to sort out shared drives, mainly to find the huge files but it also does by user which is incredibly useful. It is a fab program, can't recommend it enough really.
One "cheat" way to do it which is good if you just want to find the files owned by one or two users is to use the quota management stuff. If you don't have quotas, turn it but set it so it won't deny space to users going over quota.
When you go into the quota list you'll see each username and the total amount of space they're taking. find the user you're interested in and go to delete the entry. You'll be asked if you're sure and it will then show you a list of files that the user currently owns.
To follow up :
I found this which looks like it could do the job...
http://www.jam-software.com/filelist..._readme_en.txt
Cheers
There are currently 1 users browsing this thread. (0 members and 1 guests)