Share List Utility??

  • Thread starter Thread starter Dan
  • Start date Start date
D

Dan

I need to compile a list of all shares located across 50+
servers and was curious if there are any utilities that
could make this endevour a little less tedious. Any info
will be highly appreciated.

Thanks,
Dan
 
In
Dan said:
I need to compile a list of all shares located across 50+
servers and was curious if there are any utilities that
could make this endevour a little less tedious. Any info
will be highly appreciated.

Thanks,
Dan

can you add a net use command to your login for say admin then
log into each server to collect the data

such as

net use >c:\shares.txt

this will create a file called shares.txt in the root of each
server which can be collected and transferred to a master file.





--
Steve Parry

http://www.gwynfryn.co.uk

http://wrexhamseals.tripod.com
 
use the: net view \\servername

command, and put it into a loop

not sure how to do that myself ( i could show you in PERL, but not in
batch)... might want to ask over at the
microsoft..public.win2000.cmdprompt.admin group.

NuTs
 
I need to compile a list of all shares located across 50+
servers and was curious if there are any utilities that
could make this endevour a little less tedious. Any info
will be highly appreciated.

Thanks,
Dan

See tip 7554 in the 'Tips & Tricks' at http://www.jsiinc.com

@echo off
set netdm=netdom query /domain:%userdnsdomain% dc
for /f "Skip=1 Tokens=*" %%C in ('%netdm%') Do set cmp=%%C&call :getit
set netdm=netdom query /domain:%userdnsdomain% server
for /f "Skip=1 Tokens=*" %%C in ('%netdm%') Do set cmp=%%C&call :getit
endlocal
goto :EOF
:getit
if "%cmp%" EQU "The command completed successfully." goto :EOF
call shareperms %cmp%


Jerold Schulman
Windows: General MVP
JSI, Inc.
http://www.jsiinc.com
 
Back
Top