Several things can cause a file or folder to be locked in such a state that even a local, domain or enterprise administrator cannot change. In the ADVANCED SECURITY SETTINGS, you may see:
YOU DO NOT HAVE PERMISSION TO VIEW THIS OBJECTS SECURITY PROPERTIES, EVEN AS AN ADMINISTRATIVE USERS. TRY TAKING OWNERSHIP OF THE OBJECT…
In this case there are four ready ways to deal with the problem:
- Log out and then log back in, or just reboot to clear any files you may have open
- Browse to the root folder you are working on (one level down from the file/folder you are having trouble with), right click and select PROPERTIES, then click the SECURITY TAB, then the ADVANCED button, then click the REPLACE ALL CHILD PERMISSION ENTRIES…
- Use CMD line or third party tool to set permissions
- Use COMPUTER MANAGEMENT to close the open file/folder in question. Click START and type COMPUTER MANAGEMENT then expand SHARED FILES > OPEN FILES > right click on your file or folder and select CLOSE FILE
You may find other blogs like: https://community.spiceworks.com/topic/315441-unable-to-take-ownership-of-files-in-win-2k8-r2-server useful if you are still having problems.