Solved

get admin permissions list for folders and subfolders

Posted on 2014-10-15
1
176 Views
Last Modified: 2014-11-24
Hi Guys,

I need to find out the groups and users with read write access for a shared folder (netapp vfiler) and its subfolders. is there a powershell command that may use to gather this report?

thank you in advance.

regards,
Kelly
0
Comment
Question by:Kay
1 Comment
 
LVL 19

Accepted Solution

by:
Miguel Angel Perez Muñoz earned 500 total points
ID: 40382040
Try this:
Get-ChildItem -recurse -attributes directory | select @{n='path';e='fullname'} | out-file directory.txt

foreach ($path in (get-content .\directory.txt)) {get-acl -path "$path"} | out-file permissions.txt

When foreach ends, you can delete directory.txt because is a temporary file. Permissions must be contain all acl on every folder. If you require more detail, can add before last out-file a | fl to select all attributes.
0

Featured Post

Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

Question has a verified solution.

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

A brief introduction to what I consider to be the best editor for PowerShell.
The following article is intended as a guide to using PowerShell as a more versatile and reliable form of application detection in SCCM.
This tutorial will walk an individual through the steps necessary to configure their installation of BackupExec 2012 to use network shared disk space. Verify that the path to the shared storage is valid and that data can be written to that location:…
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…

733 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