IonicWind Software

IWBasic => Tutorials => Topic started by: Andy on July 02, 2017, 03:37:28 am

Title: Understanding the windows registry - Taking Ownership
Post by: Andy on July 02, 2017, 03:37:28 am
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 file just in case you do not have a copy.

Title: Re: Understanding the windows registry - Taking Ownership
Post by: Andy on July 02, 2017, 09:46:27 am
I would advise you all to get this and install it.