1. ## Remove the TrustedInstaller or Authenticated Users or System users fro

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
My Computer

2. Originally Posted by balubeto
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)?
I'm afraid I don't understand what you mean by "this must not involve the ACL's of their destination". Is this some kind of school coursework?
My Computer

3. Originally Posted by Mystere
I'm afraid I don't understand what you mean by "this must not involve the ACL's of their destination". Is this some kind of school coursework?
I would remove the users mentioned above from the ACLs of the link and not from their target file.

Thanks

Bye
My Computer

4. 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:

Code:
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
My Computer

5. TrustedInstaller is the built-in user account which Windows uses to install updates and Windows App so removing this will prevent you from installing Windows Store apps or having previously installed ones updated.
My Computers