Add+'Take+Ownership'+to+Right-Click+Context+Menu


 * Add 'Take Ownership' to Right-Click Context Menu**

Sooner or later you will probably come across a file that you cannot access for some reason, despite being logged in as an Administrator. In situations like this, taking ownership of the file or directory can help you gain access to the file, but the process is somewhat tedious. With some Registry editing, however, taking ownership of a file or directory is just a right-click away. Caveat Registry MY TIP

First, select and copy all of the text listed below:
 * Windows Registry Editor Version 5.00**
 * [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"**

Once you have copied all of that text, paste it into a new Notepad (or any basic text editor) document, and save the file with a *.reg extension; name it **take-ownership.reg**, for example. After saving the file, double-click it, follow the on-screen prompts, and add all of the keys to the Registry. Now you can right-click a file or folder and choose **Take Ownership** from the menu if you can't access or edit for some reason. Congratulations, you are now a Windows 7 power user!