?
Solved

User rights list

Posted on 2006-04-04
1
Medium Priority
?
199 Views
Last Modified: 2008-01-16
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
0
Comment
Question by:DARSHANDIORA
1 Comment
 
LVL 5

Accepted Solution

by:
acsell earned 2000 total points
ID: 16375180
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

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Finding a job can be stressful - searches, resume tweaks, and networking events can be super boring. Luckily we're here to help you land your dream job!
Learn more about the importance of email disclaimers with our top 10 email disclaimer DOs and DON’Ts.
Articles on a wide range of technology and professional topics are available on Experts Exchange. These resources are written by members, for members, and can be written about any topic you feel passionate about. Learn how to best write an article t…
Saved searches can save you time by quickly referencing commonly searched terms on any topic. Whether you are looking for questions you can answer or hoping to learn about a specific issue, a saved search can help you get the most out of your time o…
Suggested Courses
Course of the Month15 days, 19 hours left to enroll

850 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