>I need to pull a listing of all folders on a file server that has the
> "Allow inheritable permissions from parent to propagate to this
[quoted text clipped - 3 lines]
>
> Thanks!
Try this batch file:
01. @echo off
02. set Target=D:\User Files
03. set LogFile=c:\NoInherit.txt
04. rem Requires fileacl.exe, downloadable from
05. rem
http://www.microsoft.com/downloads/details.aspx?FamilyID=723f64ea-34f0-4e6d-9a72
-004d35de4e64&displaylang=en
06.
07. echo Inheritance checked on %date% at %time% > "%LogFile%"
08. echo ==================================================== >> "%LogFile%"
09. echo.
10. echo Compiling the folder list . . .
11. dir /ad /b /s "%Target%" > "%temp%\dir.txt"
12. echo The following folders do not have inheritance set: >> "%LogFile%"
13. for /F "delims=" %%a in ('type "%temp%\dir.txt"') do call :Sub %%a
14. notepad "%LogFile%"
15. goto :eof
16.
17. :Sub
18. echo Checking "%*"
19. fileacl.exe "%*" /raw | find /i "[I]" > nul || echo %* >> "%LogFile%"
ryanlsanders@gmail.com - 30 Apr 2008 16:47 GMT
Looked like a winner but spawned about 3000 cmd processes before I
stopped it. I tried this from both a remote terminal session and at
the console.
Server 2003 R2 SP2
I'll look into using the fileacl.exe and see if I can get something
useful out of it.
Any ideas why it spawned so many processes?
Thanks!
On Apr 29, 5:36 pm, "Pegasus \(MVP\)" <I....@fly.com.oz> wrote:
> <ryanlsand...@gmail.com> wrote in message
>
[quoted text clipped - 28 lines]
> 18. echo Checking "%*"
> 19. fileacl.exe "%*" /raw | find /i "[I]" > nul || echo %* >> "%LogFile%"
ryanlsanders@gmail.com - 30 Apr 2008 16:59 GMT
Thank you! Thank you! Thank you! Thank you!
On Apr 29, 5:36 pm, "Pegasus \(MVP\)" <I....@fly.com.oz> wrote:
> <ryanlsand...@gmail.com> wrote in message
>
[quoted text clipped - 28 lines]
> 18. echo Checking "%*"
> 19. fileacl.exe "%*" /raw | find /i "[I]" > nul || echo %* >> "%LogFile%"
Pegasus (MVP) - 30 Apr 2008 17:11 GMT
Thanks for the feedback.
I see no reason why you should get more than one
process. I suspect you caused this yourself, by
calling your batch file "fileacl.bat". This would be
a very bad idea.
> Thank you! Thank you! Thank you! Thank you!
>
[quoted text clipped - 34 lines]
>> 18. echo Checking "%*"
>> 19. fileacl.exe "%*" /raw | find /i "[I]" > nul || echo %* >> "%LogFile%"