There is a common issue with Windows 7 that many files and folders do not actually belong to the user. Below solutions will help you take ownership and full control permissions of files & folders in Windows 7.
OPTION 1:
Open COMMAND PROMPT and run below commands.
- Taking Ownership for files: takeown /f [file_name] /d y
- Taking permissions for files: icacls [file_name] /grant administrators:F
- Taking Ownership for folders/directories: takeown /f [directory_name] /r /d y
- Taking permissions folders/directories:
icacls [directory_name] /grant administrators:F /t
Note: Replace [file_name] and [directory_name] with actual names. If you do not want the command for folders to run recursively then remove /r and /t from the code.
OPTION 2:
Taking Ownership:
- Go to WINDOWS EXPLORER and locate the files/folders for which you want to take ownership.

- Right click and go to PROPERTIES>SECURITY>ADVANCED.

- Click on the OWNER tab in ‘Advanced Security Settings’ dialog.
- Click on EDIT button. This will open a new dialog.

- Select the owner in the NEW OWNER box and click OK.

- Click OK button in first dialog and PROPERTIES window.
Taking permissions:
- Locate the file and go to PROPERTIES>SECURITY>EDIT.
- Select user in the ‘Group or user names’ box to whom you want to grant permission OR click on ADD button to add them.

- Select the permissions you want to grant/deny. Click OK.
Below video will help you take ownership of folders in Windows 7














