Open File Explorer, and then locate the file or folder you want to take ownership of.
Right-click the file or folder, click Properties, and then click the Security tab.
Click the Advanced button. The “Advanced Security Settings” window will appear. Here you need to change the Owner of the key.
Click the Change link next to the “Owner:” label
The Select User or Group window will appear.
Select the user account via the Advanced button or just type your user account in the area which says ‘Enter the object name to select’ and click OK.
Optionally, to change the owner of all subfolders and files inside the folder, select the check box “Replace owner on subcontainers and objects” in the “Advanced Security Settings” window. Click OK to change the ownership.
Now you need to provide full access to the file or folder for your account. Right-click the file or folder again, click Properties, and then click the Security tab.
Click the ‘Edit’ button on your username or if not showing then the ‘Add’ button. The “Permission Entry” window will appear on the screen:
Set permissions to “Full control” by ticking the ‘allow’ box and click OK.
Click OK to get full access to the file or folder.