Computer >> Hướng Dẫn Máy Tính >  >> Xử Lý Sự Cố >> Lỗi Windows

Khôi Phục Quyền Sở Hữu TrustedInstaller Cho File Hệ Thống Windows

TrustedInstaller là tài khoản hệ thống sở hữu các file/core Windows (.dll, .exe, .sys…) để bảo vệ chúng khỏi bị sửa đổi trái phép. Nếu bạn đã lấy quyền sở hữu (Take Ownership) để chỉnh sửa file hệ thống, bắt buộc phải trả quyền về TrustedInstaller sau khi xong để đảm bảo tính ổn định và bảo mật.

Cách Trả Quyền Sở Hữu Về TrustedInstaller Trên Windows 10/11

Lưu ý: Tạo Restore Point trước khi thao tác.

Bước 1: Đổi Chủ Sở Hữu (Owner) Về TrustedInstaller

  1. Chuột phải file/thư mục/registry key → Properties → tab Security → Advanced.
  2. Dòng Owner → Change.
  3. Nhập: NT SERVICE\TrustedInstaller → Check Names → OK.
  4. Tích Replace owner on subcontainers and objects.
  5. Tích Replace all child object permission entries with inheritable permission entries from this object.
  6. Apply → OK → OK.

Bước 2: Xóa Quyền Full Control Của Tài Khoản Người Dùng (Nếu Đã Cấp Trước Đó)

  1. Mở lại Advanced Security Settings của file/thư mục đó.
  2. Tab Permissions → chọn tài khoản của bạn trong danh sách → Remove.
  3. Apply → OK.

Kiểm Tra Kết Quả

Mở lại Properties → Security → Advanced → Owner phải hiển thị TrustedInstaller. Các entry permission nên chỉ còn SYSTEM, Administrators (Read/Execute), TrustedInstaller (Full Control).

Lưu ý quan trọng: Không bao giờ xóa hoặc disable TrustedInstaller. Nếu cần chỉnh file hệ thống, hãy dùng lệnh takeown /f "đường_dẫn" /a và icacls "đường_dẫn" /grant administrators:F tạm thời, sau đó khôi phục như hướng dẫn.