July 08, 2020, 04:30:03 am


IonicWind Snippit Manager 2.xx Released!  Install it on a memory stick and take it with you!  With or without IWBasic!

Understanding the windows registry - Taking Ownership

Started by Andy, July 02, 2017, 03:37:28 am

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.


A good few years ago I posted how to take ownership of files and folders manually.

This can be necessary so that you can view / edit files / folders that were created by the Admin user not you.

Although you might be an admin user you still don't have the access rights to go there.

Here is the program that will add 'Take Ownership' to the right click context menu for files and folders.

Once added, all you need to do is to browse to a folder or file you cannot access, click on Take Ownership (right click context menu) and wait for the cmd.exe to finish.

That's it.

For a more detailed description of how to add an entry into a context menu please see my earlier post in the Tutorials section.

The entries / commands explained:

HKEY_CLASSES_ROOT\*\shell is where you can tell windows to add in a new entry for the files context menu.

HKEY_CLASSES_ROOT\*\shell\runas","Take Ownership","")  This command adds the words "Take Ownership" to the context menu default value.

HKEY_CLASSES_ROOT\*\shell\runas","","NoWorkingDirectory")  Simply means use the selected file / folder, and the 'runas' key will run a command as an Administrator.

HKEY_CLASSES_ROOT\*\shell\runas\command",Entry,"")  Adds the string of Entry into the Default field of HKEY_CLASSES_ROOT\*\shell\runas\command.

And finally,
HKEY_CLASSES_ROOT\*\shell\runas\command",Entry,"IsolatedCommand")  Adds the same entry value to a string called ,"IsolatedCommand"

The same applies for folders except we need the HKEY_CLASSES_ROOT\Directory\shell key.

This is a must have for all us windows users!

As always, read the iwb file, build, then run as Admin, attached is the Registry.inc file just in case you do not have a copy.

Day after day, day after day, we struck nor breath nor motion, as idle as a painted ship upon a painted ocean.


I would advise you all to get this and install it.

Day after day, day after day, we struck nor breath nor motion, as idle as a painted ship upon a painted ocean.