The Big Picture: "I Am the Administrator. Why Am I Refused?"
You are signed in as an administrator. You try to rename a file in C:\Windows\System32, or save a file into C:\Program Files. Windows answers:
You need permission to perform this action.
You require permission from TrustedInstaller to make changes to this file.
This confuses nearly everyone at first. The word "administrator" sounds like "can do anything". But as you learned in this chapter, an administrator is only a group, and permissions are checked against ACLs, not against titles. This section ties together everything you learned: owners, ACLs, special accounts and UAC.
8.1 TrustedInstaller Ownership Blocking Even Admin Access
What it is: Core Windows files are owned by TrustedInstaller, and their ACLs give Administrators only limited rights, usually Read & execute. So even a real administrator cannot change them.
The four reasons, one by one:
| Reason | What happens |
|---|---|
| 1. The owner is TrustedInstaller | Only the owner (or someone who takes ownership) can freely change the ACL |
| 2. The ACL gives Administrators only Read & execute | Administrators can open and run the file, but there is no Write, Modify or Delete |
| 3. Only TrustedInstaller has Full control | Only it holds "Change permissions" and "Take ownership" through the ACL |
| 4. Windows Resource Protection (WRP) | A protection layer that also guards core files against changes and repairs them if they are damaged |
What you see in the Properties window. Open the Security tab for C:\Windows\System32\notepad.exe:
Group or user names:
SYSTEM
Administrators (MYPC\Administrators)
Users (MYPC\Users)
TrustedInstaller
Permissions for Administrators Allow Deny
Full control
Modify
Read & execute ✔
List folder contents ✔
Read ✔
Write
(This is a typical picture. Your list may differ a little. Click Advanced and look at Owner at the top: it reads NT SERVICE\TrustedInstaller.)
The flow of a blocked change:
You (admin, elevated) try to delete C:\Windows\System32\file.dll
│
▼
Windows checks the ACL
Administrators: Read & execute only → no Delete right
│
▼
ACCESS DENIED ("You require permission from TrustedInstaller")
Two more things that can block you:
- You are not elevated. In a normal (non-elevated) window, you hold the filtered token (Section 7). Your Administrators group is "deny only", so it cannot grant you anything; you only have what groups like Users give you. Right-click the program → Run as administrator to use the full token.
- The file is in use. A running program can keep a file open, and Windows refuses to delete or replace it. This is a different error ("in use"), not a permissions error.
Which folders are protected like this?
| Location | Typical owner | Typical Administrators right |
|---|---|---|
C:\Windows and C:\Windows\System32 | TrustedInstaller | Read & execute |
C:\Program Files (some folders) | TrustedInstaller or SYSTEM | Read & execute or Modify (varies) |
C:\Users\<other user> | That user | Often none, until you take ownership |
(Program Files is the place where this feels different: a normal elevated installer may write there, but files Windows itself installed are owned by TrustedInstaller.)
Why Microsoft did this. There are three good reasons:
- Protect from accidents. One wrong delete in System32 can make Windows unbootable.
- Protect from malware. Malware with administrator rights still cannot freely replace core files.
- Keep updates working. Windows Update (using TrustedInstaller) needs the files to be exactly as expected, so it can replace them safely.
Chapter links. Chapter 19 explained how NTFS stores ACLs. Chapter 21 covered the system files and the System File Checker (sfc /scannow), which repairs damaged protected files. Chapter 24 explained tokens, SIDs and the ACE rules this section relied on.
8.2 How to (Carefully, If Ever Necessary) Take Ownership
What it is: An administrator can take ownership of a TrustedInstaller file, because Administrators hold the Take ownership privilege. Then they can edit the ACL and give themselves Full control. The path is real. The question is whether you should.
Strong warning. Do not take ownership of or change anything in
C:\Windows,System32, or Program Files unless you know exactly why. Possible results:
- Windows Update fails, or cumulative updates refuse to install.
sfc /scannowfinds "problems" it cannot repair, because the owner and ACLs are wrong.- A mistake can leave Windows unbootable.
- Taking ownership of a whole folder (for example
C:\Windows) is a very bad idea.Almost every normal goal (changing a setting, installing a program, customizing something) has a supported way that does not need this. Use that first.
If you really must (only a single named file, after making a backup): the steps are the same as in Section 5, in an elevated window:
1. Make a backup copy of the file first.
2. takeown /f "<the single file>"
3. icacls "<the single file>" /grant Administrators:F
4. Make your change.
5. Put things back: restore the owner to NT SERVICE\TrustedInstaller
and the old ACL (a saved copy of the ACL makes this much easier).
A safer habit: save the ACL before any change. The icacls tool can save a folder's ACLs to a file and restore them later (/save and /restore). Even then, use it only on your own data.
Restoring ownership to TrustedInstaller. Setting the owner back to NT SERVICE\TrustedInstaller is fiddly: it is not in the normal "Check Names" list for many people, and you must type the full name. If you skip the restore, Windows protections for that file are weakened for good.
Better alternatives before you reach for takeown:
| You want to... | Safer option |
|---|---|
| Fix a broken system file | Run sfc /scannow, then DISM /Online /Cleanup-Image /RestoreHealth (elevated) |
| Change something in Program Files for your own app | Reinstall to a folder you own, or run the installer as administrator |
| Remove a stubborn file that you made | Check it is not in use; check its owner is you |
| Edit a protected configuration file | Use the setting in Windows or the app instead of editing the file |
Rules of thumb:
- Your own folders: take ownership freely when needed (Section 5).
- Other users' folders: ask first, then take ownership.
- System folders: leave them alone.
Summary
| Topic | Remember this |
|---|---|
| Why admins are blocked | Owner is TrustedInstaller, ACL gives Administrators only Read & execute, and WRP guards the files |
| Error message | "You require permission from TrustedInstaller" |
| Elevated vs not | Not elevated means a filtered token with even fewer rights |
| Reasons for the design | Stability, malware resistance, safe updates |
| Taking ownership | Possible for administrators, but should be avoided on system files |
| If you must | One file only, backup first, restore owner and ACL afterwards |
| Better options | sfc /scannow, DISM, supported settings, installing to your own folders |