How to print the Folder/User-Security ???

G

Guest

Guest
Archived from groups: microsoft.public.windowsnt.misc (More info?)

Hello...

Does any one know a way to print the security of a folder... and his
sub-folders???


tx
 
G

Guest

Guest
Archived from groups: microsoft.public.windowsnt.misc (More info?)

Hi tx,

The quick and dirty way is to open up a command prompt and enter this:

(Where you'd like to get a full list of all files and folders in D:\Path)

for /f "tokens=*" %q in ('dir /s /b "D:\Path"') do (cacls "%q">>report.txt)

That will traverse all the files and folders in D:\Path and write their
security info to report.txt (in whatever location your command prompt is
running, i.e. C:)

If you just want directories instead directories and files, which I guess is
what you said, modify the DIR command so it looks like this:

for /f "tokens=*" %q in ('dir /s /b /a:d "D:\Path"') do (cacls
"%q">>report.txt)

Ray at work






"Guillermo Guerrero" <Guillermo Guerrero@discussions.microsoft.com> wrote in
message news:94E42E71-AE3F-4977-9CE8-2E7A5DEF499A@microsoft.com...
> Hello...
>
> Does any one know a way to print the security of a folder... and his
> sub-folders???
>
>
> tx