Taking Ownership of Files and Folders Becomes Necessary Sometimes But There is no Direct Option in Microsoft Windows to Take Ownership of Files and Folders in Windows 7/Windows 8.The Owner of the Object Focuses on How the Permissions are set or Defined for the Object and to whom People the Permissions are Granted.As an Owner of the Object You can even Modify The ACL of the object in any type.Sometimes Most of the Users Find Difficulty in editing the Ownership of Files Located at Windows Folders and have to perform a lot of difficult steps and thus Increasing Frustration For Users.So Here in this post I am Going to Tell You a Simple Procedure to Set A Shortcut of ‘Take Ownership of Files and Folders’ in the Context Menu.This Method Works for Microsoft Windows XP , Windows Vista , Windows 7 and Windows 8.For This You Just Need to Create a Registry File and Include it to the Registry Editor.So Here is A Step by Step Guide on How to Take Ownership of Files and Folders in Windows 7/Windows 8
Take Ownership of Files and Folders in Windows 7/XP/Vista/Windows8
- For This You Need to Create A Registry File and For this Open Notepad First
- In the Notepad Type or Copy The Following Code
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\*\shell\runas]
@=”Take ownership”
“HasLUAShield”=””
“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”
“HasLUAShield”=””
“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”
- After Typing the Code Save the Notepad File Name With .reg Extension to Create a Registry File and Select Save File Type as All Files as shown below
- After Creating the Registry File you just need to Merge it in Windows Registry.You can Manually do it by Typing regedit in RUN Dialog Box and after that Click on File and then Import and then select the file that you have created and merge it and You are all done
Restoring Default Options or Remove Ownership From Context Menu Again
- For this Again You Need to Create A Registry File and Paste the Following Code in Notepad
Windows Registry Editor Version 5.00
[-HKEY_CLASSES_ROOT\*\shell\runas]
[HKEY_CLASSES_ROOT\*\shell\runas]
@=””
“HasLUAShield”=””
[HKEY_CLASSES_ROOT\*\shell\runas\command]
@=”\”%1\” %*”
“IsolatedCommand”=”\”%1\” %*”
[-HKEY_CLASSES_ROOT\Directory\shell\runas]
- After Creating the Registry File you just need to Merge it in Windows Registry.You can Manually do it by Typing regedit in RUN Dialog Box and after that Click on File and then Import and then select the file that you have created and merge it and You are all done
Learn More About Taking Ownership of Files and Folders