From the question linked below, Moab posted a response on how to copy/edit files under Program Files if access is being denied.
How can I disable access denied when copying from network drive to program files?
To do so:
- Go to > Start > All Programs > Accessories
- Right-click on Command Prompt, and then click Run as Administrator.
Type the following command and press Enter:
takeown /f [path to folder] /r /d yTo assign the Administrators group Full Control Permissions for the folder, use this command and hit Enter:
icacls [path to folder] /grant administrators:F /T
For some dumb reason, I did this to the whole Program Files directory (recursively) instead of the one program folder I was working with.
Is there any way to revert the changes of TAKEOWN? Do I just need to enter it again with the "/A" parameter to give ownership to Administrators (assuming that's where it came from)?