Link to home
Start Free TrialLog in
Avatar of Loyall
LoyallFlag for Netherlands

asked on

Powershell: Need help with function that returns NTFS permissions on folder

Hi,

I found this script that enumerates NTFS permissions on a share. The script works great, but i would like to have some extra functionality, if possible.

The script can be found here: Script
(Also attached to this Question)

Let me first explain the filesystem structure:

[folder]
2x [filesystem group] Read of write
[rolebased group]
[Users]

So a user is member of a role based group, the rolebased group is member of a filesystem group that gives it read or write permissions to a folder.

Th script as it is now, shows the names of the filesystemgroup and than enumerates the rolebased groups and than shows the usernames.
It does not show the name of the rolebased groups.

What I would like to have as output:
Name of the filesystemgroup and the names of the rolebasedgroups that are member of this filesystemgroup. Usernames would be great, but do not have the highest priority.

Am I asking the impossible, or is there someone who can accomplish this challenge ?

Thanks in advance !
ASKER CERTIFIED SOLUTION
Avatar of x-men
x-men
Flag of Portugal image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Loyall

ASKER

Hi Sage,

That did the trick.
Thanks a lot !
Just out of curiousity, what if i wanted to have ánd groupname ánd username ?
Is there an easy way to do that, or do you need to rewrite the entire script ?
Avatar of Loyall

ASKER

Thanks !