We help IT Professionals succeed at work.

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

67 Views
Last Modified: 2018-05-10
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.
Comment
Watch Question

Chris DentPowerShell Developer
CERTIFIED EXPERT
Top Expert 2010

Commented:
What do you mean by a list of users? Those connected to a share? Those listed in an access control list?

Author

Commented:
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.
Chris DentPowerShell Developer
CERTIFIED EXPERT
Top Expert 2010

Commented:
You're hoping to resolve whatever is in the access control list to a set of users?

Author

Commented:
I might be confusing the situation I need a list of users that has access to the shared folder.
Chris DentPowerShell Developer
CERTIFIED EXPERT
Top Expert 2010

Commented:
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

Author

Commented:
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.
PowerShell Developer
CERTIFIED EXPERT
Top Expert 2010
Commented:
This problem has been solved!
(Unlock this solution with a 7-day Free Trial)
UNLOCK SOLUTION

Author

Commented:
Cheers Chris will do

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions