Hi everyone,
I am looking for a reporting tool to scan all the AD group
permissions. I would like it to scan the shares and tell me what
groups have access to what so I can print it out. Does anyone know a
utility that will do this?
Thanks
Using the RMTSHARE freeware at tip 6353 in the 'Tips & Tricks' at
http://www.jsiinc.com, run the following SharePerms.bat file:
@echo off
if {%1}=={} @echo Syntax: SharePerms Computer1 [Computer2 .... ComputerN]&exit
/b 1
REM The above 2 lines are 1 line
setlocal
:computers
If {%1}=={} goto finish
set cmp=%1
shift
set cmp=%cmp:\=%
for /f "Skip=4 Tokens=1*" %%a in ('RMTSHARE \\%cmp%^|Findstr /v /b "The command
completed successfully."') do (
REM The above 2 lines are 1 line
for /f "Tokens=*" %%r in ('RMTSHARE \\%cmp%\%%a^|Findstr /v /b "The command
completed successfully."') do (
REM The above 2 lines are 1 line
@echo %%r
)
@echo
...............................................................................................
REM The above 2 lines are 1 line
)
goto computers
:finish
endlocal
Jerold Schulman
Windows: General MVP
JSI, Inc.
http://www.jsiinc.com