修改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...
    又是夜半惊坐起阅读 13,477评论 0 23
  • “为平民愤,我被带上手铐。他们围绕着我怎么得到了题,怎么合出题者涉题者串通好,怎么准备作弊为主线来审问,我的作...
    LazyApple阅读 1,859评论 0 0
  • 今天跟偶尔,旷野和小尤去了珠江钢琴参观,看看有无什么项目可以合作,结果看到我们目瞪口呆,没想到一台钢琴竟然可以要那...
    超级傻妞阅读 1,878评论 0 0
  • 周二马克思主义新闻思想课被拉去参加新闻学院的讲座,由于后面有课,讲座其实三分之一都没听到,但是在讲座上被童爷爷忽悠...
    有凤来仪_a510阅读 2,047评论 2 2
  • 可 是想你, 是无法忘记, 是不愿清醒 转眼各往东西 前路千里刻铭 回头便是类似菩提, 失了你, 枉成了佛灵, 苦...
    DJ130阅读 2,688评论 0 1