>I needed to change the owner of my files and change the permissions recursively. First off I opened the command prompt as administrator. I don't know if this helps, but I did it anyways. Then I did these two commands that acted recursively.
TAKEOWN /R /F directory CACLS *.* /T /e /p username:f