Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsWindows Server 2003Windows 2000Windows NTSmall Business ServerVirtual ServerExchange ServerIISHost Integration ServerISA ServerSMSWSUSMOMWindows Media ServerSecurityCertification
Related Topics
SQL ServerMS WindowsMS OfficePC HardwareMore Topics ...

Windows Server Forum / Windows Server 2003 / General Topics / April 2008

Tip: Looking for answers? Try searching our database.

View all folders unchecked for "allow inheritable permissions"

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
ryanlsanders@gmail.com - 29 Apr 2008 17:08 GMT
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!
Pegasus (MVP) - 29 Apr 2008 23:36 GMT
>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%"
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2010 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.