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