Solved

get admin permissions list for folders and subfolders

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

How to sign a powershell script so you can prevent tampering, and only allow users to run authorised Powershell scripts
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
This tutorial will show how to configure a new Backup Exec 2012 server and move an existing database to that server with the use of the BEUtility. Install Backup Exec 2012 on the new server and apply all of the latest hotfixes and service packs. The…
Windows 8 came with a dramatically different user interface known as Metro. Notably missing from that interface was a Start button and Start Menu. Microsoft responded to negative user feedback of the Metro interface, bringing back the Start button a…

746 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

9 Experts available now in Live!

Get 1:1 Help Now