To fix the issue with changing ownership and permissions, you can try the following steps:
- Right-click on the file or folder you want to change ownership and permissions for, and select "Properties".
- Click on the "Security" tab.
- Click on the "Advanced" button.
- Click on the "Owner" tab.
- Click on the "Edit" button.
- Click on "Other users or groups".
- Type "NT SERVICE\TrustedInstaller" and click "Check Names".
- Click "OK" to close the "Select User or Group" window.
- Click "OK" to close the "Advanced Security Settings" window.
- Click "OK" to close the "Properties" window.
- Right-click on the file or folder again and select "Properties".
- Click on the "Security" tab.
- Click on the "Edit" button.
- Click on "Add".
- Type "Administrators" and click "Check Names".
- Click "OK" to close the "Select User or Group" window.
- Select "Administrators" in the "Group or user names" list.
- In the "Permissions for Administrators" section, click to select the "Full control" checkbox.
- Click "OK" to close the "Permissions for Administrators" window.
- Click "OK" to close the "Advanced Security Settings" window.
- Click "OK" to close the "Properties" window.
This should give you full control over the file or folder. If you are still having issues, you may need to take ownership of the file or folder as well.
References: