How to delete files protected by TrustedInstaller in Windows 10

Who I am
Philippe Gloaguen
@philippegloaguen
SOURCES CONSULTED:

support.microsoft.com

Author and references

Is Installer Trustworthy preventing you from deleting a particular system file or folder on your computer? Do not worry. After making these fixes in this article, you will be able to delete that file or folder. In most cases, the user account is not included in the ownership of the particular file or folder and it is the reason why the user cannot delete that particular file or folder.


Fix-1 Clean the disk with Disk Cleanup-

Disk Cleanup Cleans temporary files and folders (such as bug report files, caching, files stored in the Recycle Bin, etc.). Running Disk Cleanup can be helpful for you.


1. Press Windows + R have lunch Running. Now, copy paste this command "cleanmgr / lowdisk"On Run and hit Pay in. Disk Cleanup window will open.

2 inch Disk Cleanup window, in the drop-down option "Unit:”Select the drive where you installed Windows.

3. Now, in the "File to delete:”, Check all the options in the list. Finally, click on "all right”To start the cleaning process on your computer.

Disk Cleanup The process will take a few minutes to clean the junk file from your system.

Once the cleaning process is complete, start again your computer. Check if the file / folder has been deleted or not.

Fix-2 Take ownership of a file using registry script-

You can run a registration script which will give you ownership of the file / folder you want to delete.

1. The right mouse button in the desktop window and then click "New"And then you choose"Text document". A new blank text document will be created on the desktop. Double click in that text document. The Notepad window will open.



2.Copy and paste these next lines in window pad.

Windows Registry Editor Version 5.00 [-HKEY_CLASSES_ROOT*shellrunas] [HKEY_CLASSES_ROOT*shellrunas] @="Take Ownership" "HasLUAShield"="" "NoWorkingDirectory"="" "Position"="middle" [HKEY_CLASSES_ROOT*shellrunascommand] @="cmd.exe /c takeown /f "%1" && icacls "%1" /grant administrators:F /c /l & pause" "IsolatedCommand"="cmd.exe /c takeown /f "%1" && icacls "%1" /grant administrators:F /c /l & pause" [-HKEY_CLASSES_ROOTDirectoryshellrunas] [HKEY_CLASSES_ROOTDirectoryshellrunas] @="Take Ownership" "HasLUAShield"="" "NoWorkingDirectory"="" "Position"="middle" [HKEY_CLASSES_ROOTDirectoryshellrunascommand] @="cmd.exe /c takeown /f "%1" /r /d y && icacls "%1" /grant administrators:F /t /c /l /q & pause" "IsolatedCommand"="cmd.exe /c takeown /f "%1" /r /d y && icacls "%1" /grant administrators:F /t /c /l /q & pause" [-HKEY_CLASSES_ROOTdllfileshellrunas] [HKEY_CLASSES_ROOTdllfileshellrunas] @="Take Ownership" "HasLUAShield"="" "NoWorkingDirectory"="" "Position"="middle" [HKEY_CLASSES_ROOTdllfileshellrunascommand] @="cmd.exe /c takeown /f "%1" && icacls "%1" /grant administrators:F /c /l & pause" "IsolatedCommand"="cmd.exe /c takeown /f "%1" && icacls "%1" /grant administrators:F /c /l & pause" [-HKEY_CLASSES_ROOTDriveshellrunas] [HKEY_CLASSES_ROOTDriveshellrunas] @="Take Ownership" "HasLUAShield"="" "NoWorkingDirectory"="" "Position"="middle" [HKEY_CLASSES_ROOTDriveshellrunascommand] @="cmd.exe /c takeown /f "%1" /r /d y && icacls "%1" /grant administrators:F /t /c /l /q & pause" "IsolatedCommand"="cmd.exe /c takeown /f "%1" /r /d y && icacls "%1" /grant administrators:F /t /c /l /q & pause" [-HKEY_CLASSES_ROOTexefileshellrunas] [HKEY_CLASSES_ROOTexefileshellrunas] "HasLUAShield"="" [HKEY_CLASSES_ROOTexefileshellrunascommand] @=""%1" %*" "IsolatedCommand"=""%1" %*"

Now click on "Proceedings"In the menu bar and then click"Save as ...".

3 inch Save as window, choose a favorable location to save the script. Name the file as "Regfix.reg"Optional"File name:". To choose "All files“From the drop down menu. Finally, click on "Save“To save the script.


4. Now go to the location where you saved the script. The right mouse button on "Regfix"And then click"connection“To run the script. Just click on "Yup“To allow User Account Control.


5. If a warning message appears on the screen, click "Yup“To finally run the script on your computer.

Restart computer to save your system changes.

After rebooting, you should be able to take ownership of the problem file.

a. Navigate to the location of the file.

B. The right mouse button in the file and then click "Get hold"option.

Important-

Trusted Installer is a user account used by the Windows Engine Installer to protect critical system files from any threats. We strongly recommend that you redo the changes on your computer as soon as your work is done (that is, once the problematic file is removed). Please review the note mentioned below to remove the script.

NOTE: : -

You can uninstall the registration script by repeating the same procedure from Step 1 to 5 pass but with the following pad text -

Windows Registry Editor Version 5.00 [-HKEY_CLASSES_ROOT*shellrunas] [-HKEY_CLASSES_ROOTDirectoryshellrunas] [-HKEY_CLASSES_ROOTdllfileshellrunas] [-HKEY_CLASSES_ROOTDriveshellrunas] [-HKEY_CLASSES_ROOTexefileshellrunas] [HKEY_CLASSES_ROOTexefileshellrunas] "HasLUAShield"="" [HKEY_CLASSES_ROOTexefileshellrunascommand] @=""%1" %*" "IsolatedCommand"=""%1" %*"

Save this file as "Disinstalla Regfix.regAnd run it on your computer.

Restart computer to save the changes.

Fix-3 Manually take ownership of file / folder-

Taking ownership of the file / folder manually will solve your problem. Follow these steps carefully to list your account as the owner of the file.


1. Navigate to the location of the file on the File Navigator. Now, the right mouse button in that file / folder and then click "Property".

2. Now go to "Safety"Card" and then click "Advanced“Option at the bottom of the Properties window.


3 inch Advanced Security Settings window click "Modify"Next to" Owner: ". Just click on "Yup“If prompted User Account Control Excuse me.

4. In the Select User or Groups window, click "Advanced"option.

5. Click on 'Find nowAnd in the list of groups and users, find your administrative account. Select your account name and then click "all right".

6. Your account should appear in the "Enter the name of the object to select:" section. Click on "all right”To save the changes on your computer.

7. In the Advanced Sharing Settings window, select both options "Replace owner on subcontainers and objects"And then check the option"Replace all child object's permission entries with inheritable permission entries from this object“. Finally click on “Request"And"all right”To save the changes on your computer.

8. Again, in Window Properties, go to "Safety"Card" and then click "Advanced"option.

9. In the Advanced Sharing Settings window, click "Add”To enter and select a start for the folder.

10. In the Entry Permission window, click "Select a director”To add control parameters to the account.

11. In the Select User or Groups window, click "Advanced"option.

12. Click on 'Find now“Card and find yours Username. Select the name and click "all right".

13. Your account should appear in the "Enter the name of the object to select:" section. Click on "all right”To save the changes on your computer.

14. Going back to Window Entry Permit, check "Total controlOn the 'Basic Permissions:' tab. Then check "Apply these permissions only to objects and / or containers within this container“. Finally click on “all right”To save the changes on your computer.

If you receive a warning message, write it by clicking on "Yup".

15. In the last step, in Advanced sharing settings click on "Request"And"all right”To save the changes on your computer.

Restart computer to save the changes to your computer.

After rebooting, you should be able to take ownership of the problem like this:

a. Navigate to the location of the file / folder.

B. The right mouse button in the file and then click "Get hold"option.

You are the owner of the file / folder on your computer. Now you can easily edit or delete the file / folder from your system.

If you are still unable to delete the file / folder, you may want to consider using a third party app to do it for you.

Fix-4 Use a third party application to delete the file / folder:

With a third-party application, you can take ownership of the problematic file or folder. Download Properties 0.1.1.120 to take ownership of the file or folder.

1. Download "Property 0.1.1.120". Property_120.zip will be downloaded to your computer. Extract it to a favorable location of your choice on your computer.

2. Go to the extracted location. Opened "property_120“Folder in File Browser window. Now, double click on "64-bit property"(Or you can double click"Property“If you are using a 32-bit system) to boot it. Click on "Yup“If the permission is required by User Account Control.

3. In the installation window, click on "Install on PC”To start the installation process on your computer.

Minimize Window properties.

4. Browse to the location of the file on the File Navigator. Now, the right mouse button in that file / folder and then click "Get hold“. Click on “Yup“When I ask you for permission for User Account Control.

Restart your computer. Once you have taken ownership of the file / folder, you can easily delete or edit it on your computer.

NOTE- Once the job is done, you can easily remove this feature.

1. Open "64-bit property”Again following the same process (Step 2).

2 inch 64-bit Properties window, click "Uninstall”To uninstall the function from your computer.

Restart your computer.

add a comment of How to delete files protected by TrustedInstaller in Windows 10
Comment sent successfully! We will review it in the next few hours.