listing current NTFS security

  • Thread starter Thread starter AnttiH
  • Start date Start date
A

AnttiH

Hi,
I was wondering if there was a simple builtin command in windows 2000
server to recursively show all users and groups that have permissions on
a drive and generate a simple list, that I can view and adjust
accordingly.

Something like:
for /R C:\ %V in (*) do echo %V >list.lis
then somehow "pipe" list.lis to cacls.exe and parse output.

thanks in advance

AnttiH
 
Hi,
I was wondering if there was a simple builtin command in windows 2000
server to recursively show all users and groups that have permissions on
a drive and generate a simple list, that I can view and adjust
accordingly.

Something like:
for /R C:\ %V in (*) do echo %V >list.lis
then somehow "pipe" list.lis to cacls.exe and parse output.

thanks in advance

AnttiH


for /R C:\ %V in (*) do CACLS "%V">>C:\List.lis

but putting it in a batch is better:

@echo off
if exist c:\List.lis del /q c:\List.lis
for /R C:\ %%V in (*) do CACLS "%%V">>C:\List.lis

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.jsifaq.com
 
Back
Top