Security/User Report on a domain Shared Folder - Active Directory

Posted on 2011-10-28
Last Modified: 2012-05-12
We have a server with a shared folder ( D:\company Shared Folders) - with about 50+/- sub-folders.
I need to obtain a User/Security list for this and all sub folders.  Basically, all I need is the name of the folder and users who can access. We don't care about read/write priv's at the moment.   I've tried many different GET-ACL command and having no luck.

Here is a sample of something I tried.  

" $table = @()
foreach ($acl in $(get-childitem C:\Company Shared Folders  | get-acl) ) {
foreach ($ace in $acl.GetAccessRules($true,$true,
 []) | select-object
 FileSystemRights, AccessControlType, IdentityReference) {
 $table += "$($acl.path),$($acl.path),$($ace.FileSystemRights),$
 ($ace.AccessControlType),$($ace.IdentityReference | %{$_.Translate
 ([System.Security.Principal.NTAccount])} )"
 $table | Set-Content test.csv "

Please help I'm starting to go insane.  This can't be this hard.  
Question by:ccs-support
    1 Comment
    LVL 21

    Accepted Solution


    A quick search of the net turns up this:

    and this:

    which appear to offer what you want.

    There are others:

    Featured Post

    Courses: Start Training Online With Pros, Today

    Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

    Join & Write a Comment

    If you are a user of the discontinued Microsoft Office Accounting 2008 (MSOA) and have to move to a new computer running Windows 8, you will be unhappy to discover that it won't install.  In particular, Microsoft SQL Server 2005 Express Edition (SSE…
    A quick step-by-step overview of installing and configuring Carbonite Server Backup.
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

    754 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

    17 Experts available now in Live!

    Get 1:1 Help Now