Do you like this story?
Sometimes, users of Windows 7 cannot open a folder or change its access rights. This can happen because Windows 7 has full control on this folder and doesn't grant access to it even to administrators. Here is a tip that will help you take ownership of any write-protected system folder:
1. Press Windows Logo to open the Start menu. Type cmd in the search box, right click on cmd.exe, then select Run as administrator.
2. The command prompt window will pop-up, run the following command:
takeown /F Folder\Path /R
You should replace Folder\Path with the full path to the folder you want to take ownership of.
takeown /F C:\PerfLogs /R
3. After executing your command, you will have full control of the selected folder. That's it.