Re: Script to check individual permissions




"PV" <PV@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:0061CD49-BAD3-4691-B184-DF66CBFFC188@xxxxxxxxxxxxxxxx
Hi,

Does anyone know of a script that checks individual file permissions on a
set of folders?

Whith subinacl you can list al folder permissions
( subinacl /noverbose /nostatistic /outputlog=C:\myfile.txt
/subdirectories
C:\myfolder\ /display ), but as long as the permissions are set to a group
I
don't care..

Thanks in advance

Peter

You could run this batch file:

@echo off
set source=d:\Shares
set target=c:\Permissions.txt

echo Compiling a directory listing
dir /b /ad /s "%source%" > c:\dir.txt

echo Permissions listed on %date% at %time:~0,5% > %target%
echo ======================================================= >> %target%
for /F "tokens=*" %%* in (c:\dir.txt) do (
echo Processing %%*
cacls "%%*" >> %target%
)
notepad %target%


.


Loading