Keep in mind that this works for system files as well as for system folders. These steps now restored the ownership of the file to the built-in TrustedInstaller. On the 'Select User or Group' page, type the following to add the TrustedInstaller account and click Check Names: On the 'Advanced Security Settings' page, click the Change link on Owner.
How to restore TrustedInstaller ownership to system files
In this Windows 10 guide, we'll walk you through the steps to restore ownership of system files to the TrustedInstaller built-in user account.