Best way to find out what rights users have to files on a network drive

I need to find a way via a script or something else to list  all users and what rights they have to files on a particular drive for a windows server?
LVL 1
vmichAsked:
Who is Participating?
 
Hello ThereSystem AdministratorCommented:
Or just use this:
Get-ChildItem 'FOLDERNAME' -Recurse | Where-Object {(Get-Acl $_.FullName).Access | Where-Object {$_.IdentityReference -eq 'DOMAINUSERNAME'} }

Example:
Get-ChildItem 'D:\testfolder' -Recurse | Where-Object {(Get-Acl $_.FullName).Access | Where-Object {$_.IdentityReference -eq 'DOMAIN\testuser'} }
0
 
Hello ThereSystem AdministratorCommented:
There exists a tool NTFS Permission Auditor For Folders and Files. Open this link and check out provided examples.

Otherwise you can check permissions if you open file or folder Properties -> Security Tab -> Advanced -> Effective Permission -> choose a specific user or group.
0
 
vmichAuthor Commented:
Well I need to list what permissions all users have on one network drive.
Meaning what type of access each user who has access to this one drive, what their permissions are for the entire drive and I need this in a list form
0
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

 
Kevin StanushApplication DeveloperCommented:
You have to do as 'Hello There' instructed and get ALL of the security permissions for all of the files/folders you are interested in, and then probably put this into a CSV so that you can then sort it on the user/group account.  I would dump it into a CSV and put in Excel so that you than then do whatever you want with it.

There isn't a way in Windows to list this information by user as its not stored that way.
0
 
Klavs RDeveloper, owner of AlbusBitCommented:
I can recommend these tools -
NTFS Permissions Auditor Free or NTFS Permissions Reporter Free Edition.
You can specify a network directory and get all the users who can access it and what rights they have. Then you can export these results to Excel and group them as you need.
0
 
Kevin StanushApplication DeveloperCommented:
Before proceeding using cjwdev's products, send an email to their support address to see if they are still supporting the product.
0
 
vmichAuthor Commented:
Used Get-Childitem command
0
 
NVITCommented:
Use icalcs and send the results to files for review. e.g.

Report on folders in z:\folder:
icacls z:\folder\*.>zfolders.txt

Open in new window


Report on folders and subfolders in z:\folder:
icacls z:\folder\*. /t>zsubfolders.txt

Open in new window


Report on files and folders in z:\folder:
icacls z:\folder\*>zfilesandfolders.txt

Open in new window


Report on files and subfolders in z:\folder:
icacls z:\folder\* /t>zfilesandsubfolders.txt

Open in new window

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.