Solved

CMD to list Security Groups assigned to a share folder

Posted on 2016-09-22
6
68 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:nimdatx
  • 3
  • 2
6 Comments
 
LVL 54

Expert Comment

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

Author Comment

by:nimdatx
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
Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

 
LVL 54

Accepted Solution

by:
McKnife earned 500 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:nimdatx
ID: 41812475
Do u have to use it on the file server with share or can it be done from my desktop?
0
 
LVL 54

Expert Comment

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

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

When you start your Windows 10 PC and got an "Operating system not found" error or just saw  "Auto repair for startup" or a blinking cursor with black screen. A loop for Auto repair will start but fix nothing.  You will be panic as there are no back…
This article runs through the process of deploying a single EXE application selectively to a group of user.
This Micro Tutorial will give you a basic overview of Windows DVD Burner through its features and interface. This will be demonstrated using Windows 7 operating system.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

776 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