Questions

How to get share info from a list of servers?

+
0 Votes
Locked

How to get share info from a list of servers?

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.