owners of files

B

Bob Dorn

1. I need a script or utility that can report what
folder/files a specific user owns, either by user ID or
by SID

I.E. User1 on ServerA, other than their home directory
what files do they own ? Ive tried subinacl.exe, getsid,
fileowner.pl (from resource kit) without the desired
results.

2. When a user gets deleted they may own several files
within different server shares. After the user is
deleted a file or folder now whos SID as the owner. Now
I want to figure out (from a script or utility) how to
query all the shares for this SID to figure out what
files/folders they own, thusly deleting these
folders/files.

3. For User2 in the domain, how do i figure out this
persons SID ?
 
C

Clay Calvert

1. I need a script or utility that can report what
folder/files a specific user owns, either by user ID or
by SID

For starters.
dir /Q /a /s | find /i "UserName"
I.E. User1 on ServerA, other than their home directory
what files do they own ? Ive tried subinacl.exe, getsid,
fileowner.pl (from resource kit) without the desired
results.

2. When a user gets deleted they may own several files
within different server shares. After the user is
deleted a file or folder now whos SID as the owner. Now
I want to figure out (from a script or utility) how to
query all the shares for this SID to figure out what
files/folders they own, thusly deleting these
folders/files.

3. For User2 in the domain, how do i figure out this
persons SID ?

This will work before the user gets deleted.

http://www.microsoft.com/windows2000/techinfo/reskit/tools/existing/getsid-o.asp

After deletion, maybe a "Dir /q" in the home directory will work.

Clay Calvert
(e-mail address removed)
Replace "W" with "L"
 
B

Bob Dorn

Thanks Clay in addition if you pipe the dir command to
a .csv file it makes it easy within excel to figure out
the folders/file to delete. works with both the user id
or the long drawn out SID..thanks again
-----Original Message-----
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top