User rights list

Hi,
    Having Win2K server and many folders under one root folders. there are different users may be around 120 users having different rights on all these folders. now i wish have a list on excel or whatever possible way list of rights say read, write,modify & delete with respect to each user i.e which user has what rights, it is very impossible to go through each & every single folder and take down the user rights, any software utilities by which i can get this.

Regards
Darshan
DARSHANDIORAAsked:
Who is Participating?
 
acsellCommented:
You can get this information using the CACLS command.

http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/cacls.mspx?mfr=true

Here is an example VBS script that will create a list of user permissions for each sub-folder in the directory that you specify. The above website also has a key that shows you what the output values mean.




'>>>>    set directory here

Directory = "C:\Program Files"

Set fso = CreateObject("Scripting.FileSystemObject")
Set objShell = CreateObject("WScript.Shell")

If fso.FileExists(path) Then
  Set filetxt = fso.OpenTextFile("GetACL.bat", 8, True)
Else
  Set filetxt = fso.CreateTextFile("GetACL.bat", True)
End If


Set Folders = fso.GetFolder(Directory)
Set Folder = Folders.SubFolders

For Each SubFolder in Folder
  filetxt.WriteLine("cacls " & """" & SubFolder & """")
Next

objShell.run("cmd /c GetACL.bat > ACL.txt")
objShell.run("notepad ACL.txt")
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.