Jump to content


  • 0
balubeto

Remove the TrustedInstaller or Authenticated Users or System users from the ACLs

Question

Hi

 

I have Windows 10 v1511 Enterprise 64 bit.

 

From the Command Prompt, run as administrator, how should I do to remove any TrustedInstaller or Authenticated Users or System users from the ACLs of an entire directory structure also contains files and links (this must not involve the ACLs of their destination)?

 

Thanks

 

Bye

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0

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 )

Instead, if I wanted to remove the users mentioned above one at a time, how should I do?

Thanks

Bye

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...


×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.