Have you ever faced “Access denied” error while deleting any file? Many of us face this problem usually. Some files which come from other computers, or some files that are left behind after up-gradation of Windows, usually give this error.This error occurs because the Ownership of that file or folder is different. You cannot modify or delete any file or folder if you are not owner of that file or folder. So, how to solve this problem?
There exist a long and tricky method of taking ownership of such files. But I will explain an easy and simple method.
What do we need?
-A small registry key which changes the ownership of any file or folder to current user. Download it from here.
How to do it?
Just follow these steps:
Step 1 –
First open downloaded zip file, it will have two files namely, “” and “ “.
Double-click on , Click Run, if prompted.
After clicking Run, Press Yes, if UAC Prompt appears-
Registry editor will show you a warning about adding a key to registry, just press Yes.
Now you have successfully added this registry key.
Step 2 –
Now you have the power to take ownership of any file or folder. Just Right-click on that file and you will see Take Ownership option in Right-click menu.
Just click on Take Ownership and command prompt will appear for less than a second and will disappear automatically. [The time for which cmd prompt appears, depends on number of items inside the folder that you are taking ownership of. ]
Now that file or folder is all yours, you can modify or delete it as you wish. And it will not give you any errors.
Step 3 –
Now, if you don’t want Take Ownership option in Right-click menu, double-click on another file in the downloaded zip file i.e.
Same Prompts will appear again and do the same things as you did in Step 1. You will see a message about successful removal of Take Ownership option.
Now, you won’t see Take Ownership option in the Right-click menu anymore.
You can use this Take Ownership option to delete or open some inaccessible folders and files. In case you have any problems, write in comments.