Re: Dump folder permissions with sub folders

Tech-Archive recommends: Fix windows errors by optimizing your registry



Will this do?

@echo off
set target=d:\User Files
cacls "%target%" > c:\Perms.txt
for /F "tokens=*" %%* in ('dir /b /ad "%Target%"') do cacls "%%*" >>
c:\perms.txt
notepad c:\perms.txt


"Jerry Zhao" <Jerry.jie.zhao@xxxxxxxxxxxxx> wrote in message
news:86014F9E-4FF5-47AE-A2D5-1816A6AAB0BA@xxxxxxxxxxxxxxxx
Thanks.

The /t swith will let cacls goes over all sub folders, however, as i
mentioned, i just need to reach the first and second tiers sub folders.

how can we?

--
Supported newsgroup, being supported by newsgroup


"Pegasus (MVP)" wrote:


"Jerry Zhao" <Jerry.jie.zhao@xxxxxxxxxxxxx> wrote in message
news:E7A31AD4-4E54-4B9D-AC6A-837EAD46483E@xxxxxxxxxxxxxxxx
I know that we can export permissions of a folder to a list. However,
since
some folder contain mutiple tiers of sub folders and i just need to
export
the permissions of first and second tiers sub folders. Xalcs does not
have
that function as i understand.

so, my question is do we have method for this? (either using script or
using
tools)


--
Supported newsgroup, being supported by newsgroup

Try this: cacls "d:\User Files" /t





.



Relevant Pages

  • Re: Dump folder permissions with sub folders
    ... Supported newsgroup, being supported by newsgroup ... "Pegasus (MVP)" wrote: ... i just need to reach the first and second tiers sub folders. ...
    (microsoft.public.windows.file_system)
  • Re: Dump folder permissions with sub folders
    ... the script still does not work on my side, so I removed the Echo off to see ... Supported newsgroup, being supported by newsgroup ... i just need to reach the first and second tiers sub folders. ...
    (microsoft.public.windows.file_system)
  • Re: Dump folder permissions with sub folders
    ... Supported newsgroup, being supported by newsgroup ... "Pegasus (MVP)" wrote: ... i just need to reach the first and second tiers sub folders. ...
    (microsoft.public.windows.file_system)
  • Re: Dump folder permissions with sub folders
    ... the permissions of first and second tiers sub folders. ... Xalcs does not have ... Supported newsgroup, being supported by newsgroup ...
    (microsoft.public.windows.file_system)