First create a restore point
I'll give you a registry scip to take ownershop of all files in a directory:
Copy and paste all the lines between the quotes, paste it into Notepad, choose All Files from the drop-down menu, save the file as takeownership.reg. You have to manually type the .reg at the end of the file , Make sure you save it as an ANSI file and Save it to your deskyop
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\*\shell\runas]
@="Take Ownership"
"NoWorkingDirectory"=""
[HKEY_CLASSES_ROOT\*\shell\runas\command]
@="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"
"IsolatedCommand"="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"...