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