id="info"

Question

Locked

How to get share info from a list of servers?

By HP Gaspar ·
Recently I got asked the question how we could pull a listing of all the shares, share permissions and security permissions on a number of servers, the request was pretty simple executing it is extremely challenging. We have 900 servers and we need to know the share drive and path of these shares, share permissions and security permisssions. Short of logging into each server and taking a listing manually, we did iund RMTshare <<http://support.microsoft.com/default.aspx/kb/172599>> and used the below batch file to list the shares and share paths:

********************************************************************************************
@Echo off
Title Share Lister
Echo.Please wait
for /f "usebackq delims=" %%A in ("comp.txt") do (
ECHO #############################################
Echo %%A
RMTSHARE.exe \\%%A
)>>Share.csv
********************************************************************************************
Our problem is we need to also get the share and security permissions for the shares which we do not seem to be able to do.
Any ideas out there on how we could use RMTShare to do this or does anyone have a vbscript that we could use? Any help would be appreciated guys, we have a few thousand shares per server and it makes it rather difficualt to gather all the data manually.

This conversation is currently closed to new comments.

7 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Answers

Collapse -

batch file

by HP Gaspar In reply to How to get share info fro ...

@Echo off
Title Share Lister
Echo.Please wait
for /f "usebackq delims=" %%A in ("comp.txt") do (
ECHO #############################################
Echo %%A
RMTSHARE.exe \\%%A
)>>Share.csv

Collapse -

Have you used the SRVCHECK.EXE utility?

by robo_dev In reply to How to get share info fro ...

This is part of the Windows 2003 resource kit

It can enumerate shares and permissions on local and remote servers

Collapse -

Reponse To Answer

by HP Gaspar In reply to Have you used the SRVCHEC ...

Thank you Robo, as always the guys here come back quick with excellent answers. we are looking at a batch file or csharp dev to run either SRVcheck.exe or Shareenum.

Collapse -

have your tried ShareEnum

by markp24 In reply to How to get share info fro ...

hi

Agree with above , use a batch file or some type of script, but you can use
"ShareEnum" to get the permissions report (http://technet.microsoft.com/en-us/sysinternals/bb795532)
or in a powershell script using the get-acl command

Collapse -

Reponse To Answer

by HP Gaspar In reply to have your tried ShareEnum

Thank you . Appreciate the response. My Powershell Guru is off in a teepee somewhere doing his vision quest, we are looking at using csharp to to get the data using either ShareEnum or SRVCHECK.exe.
As always guys, thanks for the response and assistance.

Collapse -

Reponse To Answer

by markp24 In reply to have your tried ShareEnum

Ahh i see, C sharp is beyond my area , but ims sure somoen on here will know how to help you with that.

Back to Networks Forum
7 total posts (Page 1 of 1)  

Hardware Forums