View all folders unchecked for "allow inheritable permissions"

  • Thread starter Thread starter ryanlsanders@gmail.com
  • Start date Start date
R

ryanlsanders@gmail.com

Guest
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
object" check box cleared.

Does anyone have any suggestions?

Thanks!
 
Re: View all folders unchecked for "allow inheritable permissions"


<ryanlsanders@gmail.com> wrote in message
news:2a5dbc2e-65c4-4543-b80e-429d0025e0ce@p25g2000hsf.googlegroups.com...
>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
> object" check box cleared.
>
> Does anyone have any suggestions?
>
> 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/...ea-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 "" > nul || echo %* >> "%LogFile%"
 
Re: View all folders unchecked for "allow inheritable permissions"

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
>
> news:2a5dbc2e-65c4-4543-b80e-429d0025e0ce@p25g2000hsf.googlegroups.com...
>
> >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
> > object" check box cleared.

>
> > Does anyone have any suggestions?

>
> > 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. remhttp://www.microsoft.com/downloads/details.aspx?FamilyID=723f64ea-34f...
> 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 "" > nul || echo %* >> "%LogFile%"
 
Re: View all folders unchecked for "allow inheritable permissions"

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
>
> news:2a5dbc2e-65c4-4543-b80e-429d0025e0ce@p25g2000hsf.googlegroups.com...
>
> >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
> > object" check box cleared.

>
> > Does anyone have any suggestions?

>
> > 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. remhttp://www.microsoft.com/downloads/details.aspx?FamilyID=723f64ea-34f...
> 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 "" > nul || echo %* >> "%LogFile%"
 
Re: View all folders unchecked for "allow inheritable permissions"

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.


<ryanlsanders@gmail.com> wrote in message
news:18d744c4-8e3c-4e08-8804-28718897d191@24g2000hsh.googlegroups.com...
> 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
>>
>> news:2a5dbc2e-65c4-4543-b80e-429d0025e0ce@p25g2000hsf.googlegroups.com...
>>
>> >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
>> > object" check box cleared.

>>
>> > Does anyone have any suggestions?

>>
>> > 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.
>> remhttp://www.microsoft.com/downloads/details.aspx?FamilyID=723f64ea-34f...
>> 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 "" > nul || echo %* >> "%LogFile%"

>
 
Back
Top