Users folders security access in windows 2003 server

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

How can I create a excel sheet where I can see all the folders from my
server, and for each folder, who (group of users) has access to it? Or if not
in excel, in any other file...
 
How can I create a excel sheet where I can see all the folders from my
server, and for each folder, who (group of users) has access to it? Or if not
in excel, in any other file...


@echo off
if {%2}=={} @echo Syntax: ShowPerms ReportFile DriveLetter1 [DriveLetter2 .... DriveLetterN]&goto :EOF
setlocal
set report=%1
if exist %report% del /q %report%
shift
:loop
if {%1}=={} endlocal&goto :EOF
set drv=%1
set drv=%drv:~0,1%:
shift
for /f "Tokens=*" %%a in ('dir %drv% /b /s /AD') do (
@echo Y|cacls "%%a" >>%report%
)
goto loop

See tip 0425 » When I query the ACL of an object with CACLS, what does the (OI), (IO), (CI), and (NP) mean?.
in the 'Tips & Tricks' at http://www.jsiinc.com


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