In Windows Vista, Windows 7 and Windows 8, almost all system files are under "TrustedInstaller" control. Its a system user account which has ownership of almost all system files.
If you are a Windows customization lover, you must be knowing that before replacing a system file to customize Windows look-n-feel, you first need to take ownership of the file. Ownership can be taken either manually or using a context menu option as mentioned in following articles:
- [Guide] How to Take Ownership (Permission) of a File or Folder Manually in Windows?
- How to Add "Take Ownership" Option in Files and Folders Context Menu in Windows?
But sometimes you might need to restore ownership of the file or folder to TrustedInstaller. We have posted a tutorial to restore ownership of files or folders to TrustedInstaller in past:
And now today in this article, we are going to make your life easier. Now you'll not need to manually restore ownership of a file or folder to TrustedInstaller because we are going to provide a ready-made registry script which will add a new option "Restore ownership" in files and folders context menu (right-click menu).
Once this option is added, you can simply right-click on a file or folder and select "Restore ownership" option and it'll restore "TrustedInstaller" as owner of that file or folder.
To add the option, download following ZIP file, extract it and run the extracted REG file. It'll ask for confirmation, accept it:
An extra uninstallation registry script is also available in the above ZIP file in case you want to remove the option from context menu.
Thanks to our reader "PeaceSold13r" for sharing the command to restore ownership to TrustedInstaller which inspired us to create this automatic registry script...
Following video demonstrates this context menu option live in action: