在win7系统中,大家可能会遇到这样一个情况,就是当我们要对一些系统文件夹进行编辑或删除的时候,有时候就会弹出需要“trustedinstaller的权限,导致无法进行删除更改等操作,这是因为系统默认管理员是没有权限操作的,最高管理员就是trustedinstaller,所以就要获取trustedinstaller权限才可以对文件进行操作,那么小编今天要给大家介绍的就是添加“获取trustedinstaller权限”选项到win7右键菜单的技巧,可以方便快速获取最高权限哦。

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"

2、双击创建好的注册表文件导入,这时右键点击文件夹就会出来获取trustedinstaller权限选项了。

网友评论