User rights list

Posted on 2006-04-04
Last Modified: 2008-01-16
    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.

    1 Comment
    LVL 5

    Accepted Solution

    You can get this information using the CACLS command.

    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)
      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"cmd /c GetACL.bat > ACL.txt")"notepad ACL.txt")

    Featured Post

    Find Ransomware Secrets With All-Source Analysis

    Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

    Join & Write a Comment

    Suggested Solutions

    Learn more about the importance of email disclaimers with our top 10 email disclaimer DOs and DON’Ts.
    Whether you believe the “gig economy,” as it has been dubbed, is the next big economic paradigm shift ( or an overstated trend (…
    The Bounty Board allows you to request an article or video on any technical topic, or fulfill a bounty request to earn points. Watch this video to learn how to use the Bounty Board to get the content you want, earn points, and browse submitted bount…
    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…

    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

    18 Experts available now in Live!

    Get 1:1 Help Now