delete access denied folders in windows using registry hack

Delete access denied folders in windows 10, 7, 8

Learn how to delete access denied folders in windows 10. In Windows OS you can’t delete some system files. Because that file you have no permission or ownership to it. Sometimes when you delete system files ,a popup says you don’t have authorisation to perform this action.

There are three methods to delete access denied folder in windows.

  • Use command prompt to delete access denied files.
  • Delete using take Ownership option using GUI properties
  • Last but not least using a registry hack.

Using command prompt or using taking ownership option steps taking long process and time. You have to manually set permission for each file. So here I give a solution to you.

Here comes the best part, By using registry hack it is easy to take ownership of each file, folders and delete access denied folders in windows.

delete access denied folders, take ownership using registry hack

With the help of this registry hack, you can easily access any file or directory in Windows OS.

Steps to Create & Install Registry hack to delete access denied folders.

Copy and paste the below code in notepad and save as Install-Ownership.reg

[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"

[HKEY_CLASSES_ROOT\Directory\shell\runas]
@="Take Ownership"
"NoWorkingDirectory"=""

[HKEY_CLASSES_ROOT\Directory\shell\runas\command]
@="cmd.exe /c takeown /f \"%1\" /r /d y && icacls \"%1\" /grant administrators:F /t"
"IsolatedCommand"="cmd.exe /c takeown /f \"%1\" /r /d y && icacls \"%1\" /grant administrators:F /t"

Now close the notepad and double click Install-Ownership.reg file and this file give a prompt like below, click on Yes.

Now Click on OK.

Finally, you have installed Take Ownership registry hack. now click on any folder and select take ownership & delete access denied folders in windows 10.

Steps to Create & Uninstall Registry Hack from windows 10

Copy and paste the below code in notepad and save as Uninstall-Ownership.reg

[-HKEY_CLASSES_ROOT\*\shell\runas]

[-HKEY_CLASSES_ROOT\Directory\shell\runas]

Now close the notepad and double click uninstall-Ownership.reg file and this file give a prompt like below, click on Yes.

Leave a Reply

Your email address will not be published. Required fields are marked *