1. Joined : Jun 2015
    Posts : 213
    Windows 10
       21 Jan 2016 #1

    icacls problem


    I have Windows 10 v1511 Enterprise 64 bit.

    I noticed that the icacls "<Home_directory_path>" /inheritance:e /Q /T /C /L command, applied to the home directory of a directory structure, is run only the first level of the structure. Why?

    How do I run it automatically in all the levels below?
    I also noticed that if I write the icacls "<Home_directory_path>" /reset /Q /T /C /L command, it goes in a loop. Why? What should I write in order to avoid this?


    Last edited by balubeto; 22 Jan 2016 at 11:16.
      My System SpecsSystem Spec

  2. Joined : Jun 2015
    Posts : 213
    Windows 10
       22 Jan 2016 #2

    Apparently, the commands

    takeown /F "<Home_directory_path>" /A /R /D S /SKIPSL
    icacls "<Home_directory_path>" /reset
    icacls "<Home_directory_path>" /reset /Q /C /T /L
    pushd "<Home_directory_path>" && ( rd /S /Q "<Home_directory_path>" 2>nul & popd )
    reach my goal but the third command goes in loop and, to stop it, I have to press Ctrl+C. Why?

    How do I do that the third command does not go in loop?


      My System SpecsSystem Spec

  3. Joined : Jun 2015
    Posts : 213
    Windows 10
       26 Jan 2016 #3

    I think I found the best solution to remove a directory structure which also contains symbolic links and with ACLs managed by TrustedInstaller or Authenticated Users or System users:

    takeown /F "<Directory_path>" /A /R /D Y /SKIPSL >nul 2>&1
    icacls "<Directory_path>" /reset
    icacls "<Directory_path>" /grant:r Administrators:(OI)(CI)F /inheritance:e /Q /C /T /L >nul 2>&1
    pushd "<Directory_path>" && ( rd /S /Q "<Directory_path>" 2>nul & popd )

    Last edited by balubeto; 27 Jan 2016 at 03:44.
      My System SpecsSystem Spec


Similar Threads
Thread Forum
Icacls command usage ?
Anyone familier with the Icacls command ? I want to do is make strictly a sub-folder located in Program Files have write access, then turn it off, either if possible, via a timer which I don't think is possible with the command. Or manually...
General Support
Password problem or Windows Live Account problem
Cannot remember password, OR typed it in wrong on both entries. When I use the tool for recovering/resetting the password. The system takes me to a reset function, where I am able to put in a new password twice, but the screen that follows does not...
User Accounts and Family Safety
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 08:25.
Find Us
Twitter Facebook Google+

Windows 10 Forums