Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


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

Posted on 2011-10-28
Medium Priority
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,
 [system.security.principal.securityidentifier]) | 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 22

Accepted Solution

Larry Struckmeyer MVP earned 2000 total points
ID: 37049655

A quick search of the net turns up this:


and this:


which appear to offer what you want.

There are others:

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

I've always wanted to allow a user to have a printer no matter where they login. The steps below will show you how to achieve just that. In this Article I'll show how to deploy printers automatically with group policy and then using security fil…
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…
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…

581 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