X
X

How to Change Windows File Ownership to Fix 'Access Denied' Errors

HomepageArticlesServer SolutionsHow to Change Windows File Ownershi...

 

The One-Click Fix for Windows "Access Denied" Errors: The 'Take Ownership' Menu

Hello there! If you manage Windows servers or even just your own client PC, you've almost certainly run into this frustrating moment: you try to change a folder's permissions, you are the Administrator, but Windows stubbornly says, "Access Denied."

The problem isn't your authority. The problem is Ownership. In the Windows security model, only the "Owner" of an object (file or folder) can change its permissions. Even as an Admin, you can't edit permissions for a folder you don't own.

The normal solution is a long, annoying process: right-click, Properties, Security, Advanced, find the "Owner" tab, click "Change," type your name, apply it, check the "replace owner" box... it's a hassle.

Fortunately, there's a magic tool that solves this in seconds: adding a "Take Ownership" command directly to your right-click menu.

The 30-Second Setup

All you need to do is add a small key to your Windows Registry. We'll use a pre-made `.reg` file to do this safely and instantly.

  1. Download the Tool:
    First, download the registry file that adds this menu. It's in a .zip file from a trusted tool source:
    https://tools.erkmenhost.com/erktools/Add_Take_Ownership_to_context_menu_erkmenhost.zip
  2. Extract the Files:
    Unzip the file you just downloaded. You will see two `.reg` files:
    • Add_Take_Ownership_to_context_menu.reg (This adds the menu)
    • Remove_Take_Ownership_from_context_menu.reg (Use this if you want to remove it later)
  3. Run the Registry File:
    Double-click on Add_Take_Ownership_to_context_menu.reg.
    You will see a User Account Control (UAC) warning. Click "Yes".
    Next, the Registry Editor will ask if you are sure. Click "Yes" again.
  4. Confirmation:
    You'll see a final popup saying the keys were successfully added. That's it!

How to Use Your New Power

Now, go back to that stubborn folder that was giving you the "Access Denied" error.

  1. Right-click on the problematic folder or file.
  2. You will now see a new option in the menu: "Take Ownership".
  3. Click it.
  4. A black command prompt (CMD) window will flash on the screen for a split second and disappear.

In that half-second, the script has forcefully taken ownership of that folder (and *all* subfolders and files inside it) and assigned it to the "Administrators" group. You are now the owner.

The Final, Crucial Step: Resetting Permissions

This is the part most people forget! Just because you are the owner, it doesn't mean the broken permissions are fixed. Now you have to apply the *correct* permissions.

Now that you are the owner, you can finally fix the permissions list without errors:

  1. Right-click the same folder again (the one you just took ownership of).
  2. Go the "long way" this time: Properties → Security → Advanced.
  3. At the bottom of the "Advanced Security Settings" window, find and check the box that says:
    "Replace all child object permission entries with inheritable permission entries from this object"
  4. Click "Apply" and then "Yes" to the warning.

You're done! This final step pushes your new, correct permissions from the top folder all the way down, overwriting any broken or "Access Denied" permissions on the subfolders.

You can now edit the folder's permissions, add users, or remove groups without any more errors.


Top