修改TrustedInstaller权限文件(无法删除文件)
from--https://blog.csdn.net/harbor1981/article/details/98971097

解决办法:

打开记事本,复制粘贴以下代码,保存为trust.reg,然后双击加入注册表。加入成功后,右键菜单将增加“获取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”

“`
上一篇
下一篇