Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Take Full Ownership of Files & Folders in Windows

· 5 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Taking full ownership of a file or folder in Windows lets you access, modify, or delete items that are otherwise locked by permissions—usually because the original owner account no longer exists or the item is protected by the system. This guide walks you through the built-in Windows method using the Properties dialog and command line, no third-party tools needed. You'll need an administrator account on the PC.

What You'll Need

  • An administrator user account (you'll be prompted for admin credentials or UAC confirmation).
  • The exact path to the file or folder you want to take ownership of.
  • If the item is on an external drive, make sure it's connected and recognized.

Step-by-Step

These steps work on Windows 10 and Windows 11. Menu labels may differ slightly by version, but the core process is the same.

Method 1: Using File Explorer (GUI)

  1. Locate the file or folder in File Explorer. Right-click it and select Properties.
  2. Go to the Security tab. At the bottom, click the Advanced button.
  3. At the top of the Advanced Security Settings window, you'll see the current owner (e.g., "TrustedInstaller" or a deleted user SID). Click Change next to the owner's name.
  4. In the "Select User or Group" dialog, type your username (e.g., YourName) or Administrators to give all admins ownership. Click Check Names to validate, then OK.
  5. Back in the Advanced Security Settings, check the box Replace owner on subcontainers and objects if you want to take ownership of everything inside a folder (recommended for folders).
  6. Click OK to apply. Windows will show a brief progress bar. If you get an error about permission, continue to the command-line method below.
  7. Now you need to grant yourself full control. Right-click the item again, go to Properties > Security > Edit.
  8. Select your user (or Administrators) in the list, then check Full control under "Allow". Click Apply and OK.
  9. If you see a warning about changing permissions on a system folder, read it carefully—proceed only if you're sure. Click Yes to continue.

Method 2: Using Command Prompt (Faster for Folders)

  1. Open Command Prompt as administrator: press Win, type cmd, right-click "Command Prompt" and choose Run as administrator.
  2. To take ownership, type the following and press Enter, replacing C:\path\to\folder with your actual path:
    takeown /f "C:\path\to\folder" /r /d y
    The /r flag applies to all subfolders and files; /d y automatically answers "Yes" to the prompt.
  3. After ownership is taken, grant yourself full control with this command:
    icacls "C:\path\to\folder" /grant administrators:F /t
    This gives the Administrators group full control recursively. Replace administrators with your username if you prefer.
  4. Wait for the process to finish. You'll see "successfully processed" messages. Close the Command Prompt.

Common Mistakes

  • Forgetting the recursive flag (/r or the checkbox) — you only change the top folder, leaving subfolders locked.
  • Taking ownership but not granting permissions — ownership alone doesn't give you access; you must also set permissions (step 7-8 in Method 1 or the icacls command).
  • Using the wrong username — if you type a name that doesn't exist, Windows will prompt you. Use Administrators to avoid typos.
  • Clicking "Change" in the wrong place — the owner field is at the top of the Advanced Security window, not in the Permissions list.
  • Not running Command Prompt as admin — you'll get "Access is denied" errors.

Tips

  • Always take ownership of a copy of a system file first if you're unsure. Practice on a test folder before touching anything in C:\Windows.
  • After you're done, consider restoring the original owner (e.g., NT SERVICE\TrustedInstaller) for system files. You can do this by repeating the ownership step and typing NT SERVICE\TrustedInstaller in the user selection box.
  • If you only need to read a file, try changing permissions without taking ownership first—that's less invasive.
  • For a single file, the GUI method is fine; for a large folder tree, the command line is much faster.
  • Use takeown /? and icacls /? in Command Prompt to see all options.

Troubleshooting

Error: "Access is denied" when using takeown
Make sure Command Prompt is running as administrator. Also verify the path is correct—use quotes around paths with spaces.

Error: "The file or folder is in use"
Close any program that might be using the file (e.g., a text editor or media player). If it's a system file, boot into Safe Mode and try again.

Ownership changes but you still can't open the file
You likely forgot to set permissions. Run icacls "path" /grant yourname:F /t or use the GUI to grant full control.

Windows says "You don't have permission to view or edit this object's permission settings"
This happens when the current owner is a protected system account. In Advanced Security, click Change next to the owner, and type Administrators—don't try to browse. If that fails, use the command line method.

Folder still shows a lock icon after ownership
The lock icon may persist until you restart File Explorer. Press Ctrl+Shift+Esc to open Task Manager, find "Windows Explorer", right-click and choose Restart.

Frequently Asked Questions

Can I take ownership of the entire C: drive?

Technically yes, but it's a bad idea—it can break Windows updates and system protection. Only take ownership of specific folders you need.

What's the difference between ownership and permissions?

Ownership is the right to change permissions. Permissions determine what you can do (read, write, execute). You need both to fully control a file.

Will taking ownership delete my files?

No, it only changes security settings. Your data remains intact. However, if you then delete the folder, it's gone—so be careful.

Why does it say "TrustedInstaller" owns some folders?

TrustedInstaller is a Windows service that manages system files. It's a safety measure to prevent accidental modification. You can take ownership, but it's usually safer to leave system files alone.

Can I take ownership of files on a USB drive or external hard drive?

Yes, if the drive is formatted with NTFS. On FAT32 or exFAT drives, there are no permissions to change, so ownership doesn't apply.

I'm not an administrator. Can I still do this?

No. You need administrator rights. If you're on a work or school PC, contact your IT department instead of trying to bypass restrictions.