Link to home
Start Free TrialLog in
Avatar of Lone Ranger
Lone Ranger

asked on

How to extract users from a network shared drive NTFS not shares

I am on a windows 2008 r2 I have tried powershell cmds but no success I need to get a list of users from one of my network shared folders. Can anyone help the environment is a live prod that is pretty locked down so I am limited to batch vbs or powershell scripts.
Avatar of Chris Dent
Chris Dent
Flag of United Kingdom of Great Britain and Northern Ireland image

What do you mean by a list of users? Those connected to a share? Those listed in an access control list?
Avatar of Lone Ranger
Lone Ranger

ASKER

A list of who has access to the share so most probably the ACL. I have had no joy yet in getting users I have managed to get owners and permissions but not users.
You're hoping to resolve whatever is in the access control list to a set of users?
I might be confusing the situation I need a list of users that has access to the shared folder.
There are two different sets of permissions governing access, share and NTFS. I imagine you want the share permissions, but you'll have to take whatever is in there and work out users.

Starting with Share rights, are you able to run this? I can't remember if the command is available on 2008. No problem really if it's not.
Get-SmbShareAccess -Name TheShareName

Open in new window

Ok I will give this a try in the morning but all the file services shares are controlled through NTFS permissions in and the share aspect has everyone in most of them. will this work for that sorry for dumb questions. complete novice with shares.
ASKER CERTIFIED SOLUTION
Avatar of Chris Dent
Chris Dent
Flag of United Kingdom of Great Britain and Northern Ireland 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
Cheers Chris will do