修改TrustedInstaller權限文件(無法刪除文件)

來源:schtasks.exe無法加載列資源的問題

2018年3月29日 星期四

14:17

因為schtasks.exe無法加載列資源的問題,網上介紹說(包括微軟官方),都是刪除或改名C:\Windows\System32\zh-CN\schtasks.exe.mui,修改該文件就會遇到這個問題。

在Win7系統中,存在一個虛擬賬戶,即TrustedInstaller,有時需要對C盤一些系統文件/文件夾進行修改,或刪除,就會彈出“你需要TrustedInstaller提供的權限才能修改此文件”。這時用此法可解除此限制。對于系統中一些無法刪除的文件/文件夾,有時采用此法也能輕松刪除。

TrustedInstaller是什么

TrustedInstaller.exe is Windows Module Installer service which is part of Windows Resource Protection.

Windows Resource Protection (WRP) is a technology that restricts access to certain core system files, folders, and registry keys that are part of the Windows Vista installation. WRP prevents files with .dll, .exe, .ocx, and .sys file extensions from being modified or replaced.

Protecting these key resources is important to overall system stability, and, as such, they can only be modified by the Windows Module Installer service (TrustedInstaller.exe). If someone with administrative rights attempts to modify or replace a file that is protected by WRP, he will be presented with the message "Access Denied".

上面的內容我就不翻譯了,就是Windows的VIP保護計劃。

一鍵獲取TrustedInstaller權限。

請將以下內容保存為

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\*\shell\runas]

@="獲取TrustedInstaller權限"

[HKEY_CLASSES_ROOT\*\shell\runas\command]

@="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"

"IsolatedCommand"="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"

[HKEY_CLASSES_ROOT\Directory\shell\runas]

@="獲取TrustedInstaller權限"

"NoWorkingDirectory"=""

[HKEY_CLASSES_ROOT\Directory\shell\runas\command]

@="cmd.exe /c takeown /f \"%1\" /r /d y && icacls \"%1\" /grant administrators:F /t"

"IsolatedCommand"="cmd.exe /c takeown /f \"%1\" /r /d y && icacls \"%1\" /grant administrators:F /t"

手動獲取TrustedInstaller權限:

  • 右鍵屬性/安全/高級;
  • 所有者/編輯/添加當前用戶/應用/確定;
  • 關閉窗口;
  • 右鍵屬性/安全/編輯;
  • 選擇Administrators(或者你的當前組)/勾選完全控制/確定;

參考:

https://www.landiannews.com/archives/303.html

https://jingyan.baidu.com/article/5bbb5a1b5d293413eba179ea.html

?著作權歸作者所有,轉載或內容合作請聯系作者
平臺聲明:文章內容(如有圖片或視頻亦包括在內)由作者上傳并發布,文章內容僅代表作者本人觀點,簡書系信息發布平臺,僅提供信息存儲服務。

推薦閱讀更多精彩內容

  • **2014真題Directions:Read the following text. Choose the be...
    又是夜半驚坐起閱讀 9,786評論 0 23
  • “為平民憤,我被帶上手銬。他們圍繞著我怎么得到了題,怎么合出題者涉題者串通好,怎么準備作弊為主線來審問,我的作...
    LazyApple閱讀 282評論 0 0
  • 今天跟偶爾,曠野和小尤去了珠江鋼琴參觀,看看有無什么項目可以合作,結果看到我們目瞪口呆,沒想到一臺鋼琴竟然可以要那...
    超級傻妞閱讀 287評論 0 0
  • 周二馬克思主義新聞思想課被拉去參加新聞學院的講座,由于后面有課,講座其實三分之一都沒聽到,但是在講座上被童爺爺忽悠...
    有鳳來儀_a510閱讀 290評論 2 2
  • 可 是想你, 是無法忘記, 是不愿清醒 轉眼各往東西 前路千里刻銘 回頭便是類似菩提, 失了你, 枉成了佛靈, 苦...
    DJ130閱讀 348評論 0 1