您(Did)知道吗,即使您是管理员, (Administrator)Windows中的很多文件也不属于您所有?相反,它们由一个名为“受信任的安装程序”的实体拥有。好听的名字啊!
所以大多数时候这不是问题,除非您需要删除某些系统文件和文件夹。您最终会收到如下消息:
You do not have permission to perform this action.
或类似的东西:
You need authorization from TrustedInstaller in order to perform this action.
感谢视窗!因此,要删除TrustedInstaller拥有的文件或文件夹,您必须首先获得文件或文件夹的所有权,然后授予自己完全控制权限和权限!
您必须执行所有这些操作才能重命名、删除或编辑这些文件和文件夹。在本文中,我将引导您完成执行此操作的步骤。请注意,您确实不应该使用此方法来尝试删除Windows Defender或 IE等基本Windows功能。它不起作用,它会弄乱你的电脑。仅使用此技巧删除可能已将自身插入受保护的Windows目录的恶意软件或病毒文件。
取得文件的所有权
首先,转到需要更改权限的文件夹或文件集,右键单击它们并选择Properties。
接下来单击“安全(Security )”选项卡,然后单击底部的“高级”按钮:(Advanced)
接下来单击Owner选项卡,您现在将看到当前所有者是TrustedInstaller。
现在单击“编辑(Edit)” (在 Windows 10 中,它是“更改”(Change)按钮)按钮,然后选择您要将所有者更改为的人,您的帐户或管理员(Administrators)组。如果您的帐户是管理员(Administrator)帐户,我建议您选择Administrator。
如果您需要删除文件夹中的多个文件,您还可以选中替换子容器和对象的所有者。(Replace owner on subcontainers and objects)继续并单击确定。现在您将看到当前(Current)所有者是您选择的帐户。
请注意,如果您尝试删除包含子文件夹等的整个文件夹,您还需要单击Permissions选项卡,然后单击Change Permissions,选择Administrators或您要使用的帐户,然后检查将所有子对象权限替换为此对象的可继承权限(Replace all child object permissions with inheritable permissions from this object)。
值得注意的是,在您首先更改文件夹以及所有子文件夹和文件的所有者之前,您将无法更改权限,如上所示。
单击确定(Click OK),直到您关闭所有属性窗口并返回Windows 资源管理器(Windows Explorer)屏幕。然后再次右键单击该文件夹或文件并再次选择“属性(Properties)” 。
现在再次单击Security选项卡,但您需要单击Edit按钮,而不是单击Advanced 。
现在单击列表中要更改权限的用户名,该用户名也应该与您更改当前所有者的用户名相同。如果用户名不在列表中,请单击添加(Add),输入名称并单击确定。
由于我已将当前所有者更改为Administrators,因此我在此处单击了Administrators ,然后单击了(Administrators)Full Control旁边的复选框。当您这样做时,所有其他框也会被选中。
单击(Click OK)一次确定,然后再单击一次确定(OK one)以返回Windows 资源管理器(Windows Explorer)。现在您可以删除这些文件,而无需任何UAC消息告诉您不能!这是相当多的步骤,但它确实有效。享受!
Windows 7/8/10 – How to Delete Files Protected by TrustedInstaller
Did уoυ know that a lot of filеs in Windows are not owned by you, even if you are the Administrator? They аre insteаd owned by an entity called the “Trusted Instаllеr”. Such а wonderful sounding name eh!
So that’s not a problem most of the time, unless you need to delete certain system files and folders. You’ll end up getting a message like:
You do not have permission to perform this action.
or something like:
You need authorization from TrustedInstaller in order to perform this action.
Thanks Windows! So in order to delete a file or folder that is owned by TrustedInstaller, you have to first take ownership of the files or folders and then grant yourself full control permissions and rights!
You have to do all of that just to be able to rename, delete, or edit these files and folders. In this article, I’ll walk you through the steps in order to do this. Note that you really shouldn’t use this method to try and delete basic Windows features like Windows Defender or IE. It won’t work and it’ll mess up your computer. Only use this trick for deleting malware or virus files that may have inserted themselves into protected Windows directories.
Take Ownership of Files
First, go to the folder or set of files that you need to change permissions for, right-click on them and choose Properties.
Next click on the Security tab and then click on the Advanced button at the bottom:
Next click on the Owner tab and you’ll now see that the current owner is TrustedInstaller.
Now click on the Edit (in Windows 10, it’s the Change button) button and choose who you would like to change the owner to, either your account or the Administrators group. If your account is an Administrator account, I would suggest just picking Administrators.
You can also check off Replace owner on subcontainers and objects if you need to delete more than one file in a folder. Go ahead and click OK. Now you will see that the Current owner is the account you picked.
Note that if you are trying to delete an entire folder that has sub-folders, etc., you’ll also need to click on the Permissions tab, then Change Permissions, select Administrators or the account you want to use, and then check the Replace all child object permissions with inheritable permissions from this object.
It’s worth noting that you won’t be able to change permissions until you first change the owner for the folder and all subfolders and files as shown above.
Click OK until you have closed all properties windows and are back to the Windows Explorer screen. Then right-click on the folder or file again and choose Properties again.
Now click on the Security tab again, but instead of clicking on Advanced, you need to click the Edit button.
Now click on the user name in the list that you want to change the permissions for, which should be the same as who you changed the current owner too. If the user name is not in the list, click Add, type in the name and click OK.
Since I had changed the current owner to Administrators, I clicked on Administrators here and then clicked on the check box next to Full Control. When you do that, all the other boxes get checked too.
Click OK once and then click OK one more time to get back to Windows Explorer. Now you can delete those files without any UAC messages telling you that you can’t! It’s quite a few steps, but it does work. Enjoy!