Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

CMD to list Security Groups assigned to a share folder

Posted on 2016-09-22
6
Medium Priority
?
308 Views
Last Modified: 2016-10-01
Hello,

I am looking to see how I can use a cmd to pull all security groups that are assigned to a share folder.

Thanks,

nimdatx
0
Comment
Question by:Jaime Campos
  • 3
  • 2
6 Comments
 
LVL 57

Expert Comment

by:McKnife
ID: 41810994
On an elevated command prompt, type:
Net share sharename
0
 
LVL 1

Author Comment

by:Jaime Campos
ID: 41811382
ran a net share sharename and I get, "This shared resource does not exist". I am looking to get security groups assigned to a share on WIN2K8. Thanks.
0
 
LVL 32

Expert Comment

by:nappy_d
ID: 41811790
Please use icacls from the command line.

Here is reference document for this and you can pipe the output to a file.

https://technet.microsoft.com/en-us/library/cc753525(v=ws.11).aspx
0
Simplify Active Directory Administration

Administration of Active Directory does not have to be hard.  Too often what should be a simple task is made more difficult than it needs to be.The solution?  Hyena from SystemTools Software.  With ease-of-use as well as powerful importing and bulk updating capabilities.

 
LVL 57

Accepted Solution

by:
McKnife earned 2000 total points
ID: 41812105
Icacls does NOT list share permissions.
net share works here, look at this output:
net share brenner
Share name        Brenner
Path              E:\
Remark
Maximum users     No limit
Users
Caching           Manual caching of documents
Permission        Everyone, READ

The command completed successfully.

Open in new window


Maybe you missed that (of course!) you need to substitute "sharename" with the name of the share in question?
0
 
LVL 1

Author Comment

by:Jaime Campos
ID: 41812475
Do u have to use it on the file server with share or can it be done from my desktop?
0
 
LVL 57

Expert Comment

by:McKnife
ID: 41812478
On the server itself.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

It’s time for spooky stories and consuming way too much sugar, including the many treats we’ve whipped for you in the world of tech. Check it out!
Unable to change the program that handles the scan event from a network attached Canon/Brother printer/scanner. This means you'll always have to choose which program handles this action, e.g. ControlCenter4 (in the case of a Brother).
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…

963 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