The best way is to replace the owner on all your files, You can do this by replacing owner on the top directory and recurse it through child items. TechNet-article
1.Open Windows Explorer, and then locate the file or folder you want to take ownership of.
2.Right-click the file or folder, click Properties, and then click the Security tab.
3.Click Advanced, and then click the Owner tab.
4.Click Edit, and then do one of the following:
◦ To change the owner to a user or group that is not listed, click Other users and groups and, in Enter the object name to select (examples), type the name of the user or group, and then click OK.
◦ To change the owner to a user or group that is listed, in the Change owner to box, click the new owner.
5.To change the owner of all subcontainers and objects within the tree, select the Replace owner on subcontainers and objects check box.
As well as doing the above
Make sure your user has full control of all file and directories by doing the following.
- Right click on the top directory and choose properties. Click on
Security tab and choose advanced.
- Click on the permission tabs,choose change permissions.
- If your current username is in this list, then choose it and click edit (If your username is not in the list
then click add, and then add your user in and then select user and
- Tick full control press ok.
- Tick box that says
replace all child object permissions with inheritable permissions from this object
- Press OK