Win10系统怎么获取trustedinstaller权限?

娜娜 2023-10-26 14:44:51

  近期有Win10用户在给电脑清理无用的文件时,发现存在部分文件无法删除的情况,同时还弹出提示窗,上面写着需要trustedinstaller权限才能进行删除,那么我们应该如何操作才能获取该权限呢?方法很简单,我们一起来了解下吧。

Win10系统获取trustedinstaller权限

  方法/步骤

  1. 首先在桌面新建一个文本文件;

Win10系统获取trustedinstaller权限

  2. 将文件重命名为trustedinstaller.txt,将以下代码复制粘贴到记事本里;

  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”

Win10系统获取trustedinstaller权限

Win10系统获取trustedinstaller权限

  3. 将文件的扩展名修改为reg;

Win10系统获取trustedinstaller权限

  4. 提示修改后的问题,不用管,直接点确定;

Win10系统获取trustedinstaller权限

  5. 双击trustedinstaller.reg,提示注册表信息添加成功。

Win10系统获取trustedinstaller权限

  以上就是系统之家小编为你带来的关于“Win10系统怎么获取trustedinstaller权限?”的全部内容了,希望可以解决你的问题,感谢您的阅读,更多精彩内容请关注系统之家官网。

若对以上内容有疑问请联系反馈

文章价值

100

260人打分
猜你想搜
相关推荐