Solved

get admin permissions list for folders and subfolders

Posted on 2014-10-15
1
174 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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

New Windows 7 Installations take days for Windows-Updates to show up and install. This can easily be fixed. I have finally decided to write an article because this seems to get asked several times a day lately. This Article and the Links apply to…
This article will help you understand what HashTables are and how to use them in PowerShell.
This tutorial will walk an individual through locating and launching the BEUtility application and how to execute it on the appropriate database. Log onto the server running the Backup Exec database. In a larger environment, this would generally be …
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…

786 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