How to Take Ownership in Windows 10?

0
124

Have you ever been denied of access to any of your files and folder in your Windows computer? If yes, then surely you have come to the right place to seek your solutions. This problem can be sorted out by taking ownership of all those files and folders using your presently running user account. But before we set out for the solutions for this very tribulation, you first need to know why you come across a need so suddenly to take ownership for files of your very own system.

Why We Need to Take Ownership on Windows

There could be many plausible reasons, such as you might have got some files from a user account which is presently deleted from your system; or the files or folders that you are trying to access here and now were at once created in some other operating system and your system might have been upgraded to some other OS version like Windows 10. So the files are compatible with your previous OS version but not with Windows 10; or you could have got the files from a different hard drive from another computer that you were working on. There are various other explanations that could ascertain the scenario, but since we are here to resolve the issue, we would keep our focus riveted to the solution part only instead of the detailed analysis of why? and how?

How We Take Ownership on Windows 10?

The first method that we would employ here is the implementation of Registry Editor to resolve our issue. But you need to be very cautious regarding the usage of registry editor as even a slightest mistake with registry keys can render greater disasters to your system files than you can actually imagine. So basically you have to first open the “Run” panel by pressing key combination “Windows + R”. Then type in “regedit” and hit “Enter” to open up the Registry Editor. On the left side pane of the new editor window, go to the following location called “shell”

HKEY_CLASSES_ROOT\*\shell

HKEY_CLASSES_ROOT

Next you have to create a new key named “runas”. Right-click on the “shell” option, then select “New” and then create a “key”. Name the key as “runas”.

registry editor 2

Click on the “runas” key and then double-click the “Default” option and a new window will open up. In the “Value Data” titles box, type in “Take Ownership” and press “Ok”. Now this value will appear in your context menu since you can change it to any value you wish.

start to take ownership

 

Now you have to create a new value inside the “runas” key. For that, double click the “runas” key and choose “New” and then “String Value”. You can also name the newly created value as “No working directory”.

take ownership now

Now you have to create another key inside “runas”. To do that, right click on “runas”. Select “New> Key” and then name the key as “command”. Next with the new “command” key chosen, double click the “default” option to open up its property window. In the “Value Data” box again, copy paste the following code and press “Ok”

cmd.exe /c takeown /f \”%1\” && icacls \”%1\” /grant administrators:F

Create new “command” key and right click on it select “New” and then the “String Value”. Name this key as Isolated command”. Double click on it to open up its property window. In the “Value Data” box, copy paste the following code we just used a while ago and press “Ok”

cmd.exe /c takeown /f \”%1\” && icacls \”%1\” /grant administrators:F

Once you have done all this laborious workaround, “Take Ownership” command will be seen added in your context menu to open the files and folders that appear to be blocked.

Besides this complicated registry editor procedure, which might seem to be difficult for beginners, there is another alternative that can be put to use to overcome this issue. This method would involve the usage of Property Tab. Firstly open up the Windows explorer to choose the files and folders that you wish to take ownership of. Now simply right click on that particular file or folder and select “Properties” and then go to “Security” tab. After you have done this much, click “Edit” button and follow up any of the two method mentioned ahead.

  • If you wish to change owner to a group or any user, just choose “Other Users and Groups”. In the “Enter the object name to select” field, enter the name of the group or the user and press “OK” to continue.
  • Otherwise, in order to change the owner to a user or a group, which is actually listed in the “Change owner to” box, simply choose the new owner.

If you have done this properly, then your ownership issue will not seem to linger anymore with every blocked files and folders.

Both the methods mentioned above in the article are carefully chosen to help you in every best possible manner, but it is now completely up to you as how you are going to follow the steps of the guidelines. If you wish to know more about registry files and the cautions that are needed to be taken before using them, read our other articles and this will help you to take ownership in a better way using registry editor.

LEAVE A REPLY

Please enter your comment!
Please enter your name here