Smart Systems for Home

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

How to Change File or Folder Ownership 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

Changing ownership of a file or folder in Windows lets you take control of items that were created by another user account, a previous installation, or a system process. This is often necessary when you get an “Access Denied” error or need to modify files after moving a hard drive to a new PC. The process uses the built-in Advanced Security Settings window and requires an administrator account.

What You'll Need

  • An account with administrative privileges on the computer.
  • The exact name of the user account or group you want to make the new owner. If you're taking ownership for yourself, it's your Windows username.
  • If the file or folder is on an external drive, make sure it's connected and recognized.

Step-by-Step

  1. Locate the file or folder in File Explorer. Right-click it and select Properties from the context menu.
  2. In the Properties window, go to the Security tab. This tab lists users and groups that have permissions for the item.
  3. Click the Advanced button at the bottom right. This opens the Advanced Security Settings window.
  4. Click the Change link next to it.
  5. In the Select User or Group dialog, type the username of the account you want to give ownership to. If you're not sure of the exact name, click Advanced and then Find Now to search for users. Select the name and click OK.
  6. Back in the Select User or Group dialog, click OK again. The owner field in Advanced Security Settings now shows the new owner.
  7. Optional but recommended: If the item is a folder, check the box “Replace owner on subcontainers and objects”. This applies the new ownership to everything inside the folder, which is usually what you want.
  8. Click OK to close the Advanced Security Settings window. Windows will apply the change. If you get a warning about permissions, click Yes to proceed.
  9. Click OK on the Properties window to finish. You may need to close and reopen the file or folder to see the changes take effect.

Common Mistakes

  • Typing the username incorrectly. Windows usernames are case-insensitive but must match exactly in spelling. Use the Find Now search to avoid typos.
  • Forgetting to replace ownership on subfolders. If you only change the top folder, the files inside may still show the old owner. Always check the “Replace owner on subcontainers and objects” box when dealing with folders.
  • Choosing the wrong account type. Make sure you're entering a user account, not a group like “Authenticated Users” unless you intend to give ownership to everyone.
  • Not running as administrator. If your account is not an administrator, the “Change” link may be grayed out or you'll get an access denied error.

Tips

  • Use the Take Ownership context menu option if you're on Windows 10 or 11 Pro/Enterprise. This is a built-in feature that can be enabled via the registry, but it's not available by default on Home editions.
  • If you're moving a hard drive from an old PC, it's often easier to take ownership of the entire drive letter (e.g., D:\) at once, rather than each folder individually.
  • After taking ownership, you may still need to grant yourself Full Control permissions. In the Security tab, click Edit, select your user, and check “Full Control” under Allow.
  • For system files (like those in C:\Windows), be extremely careful. Changing ownership of system files can break Windows updates or cause boot issues. Only do this if you know exactly what you're doing.

Troubleshooting

  • “Access Denied” when trying to open Properties. This usually means you don't have read permissions. Try right-clicking and selecting “Properties” again; if that fails, use an administrator account. You can also try opening File Explorer as administrator by right-clicking its icon and selecting “Run as administrator.”
  • The “Change” link is grayed out. This indicates you're not using an administrator account. Log off and log in with an administrator account, or right-click the file and choose “Run as administrator” if the option appears.
  • “You don't have permission to view or edit this object’s permission settings.” This error can occur even as admin if the file is owned by SYSTEM or TrustedInstaller. You may need to take ownership first from the command line. Open Command Prompt as administrator and run: takeown /f "C:\full\path\to\file" /r /d y. Then use icacls "C:\full\path\to\file" /grant username:F /t to grant full control.
  • Ownership change doesn't stick. Some files, especially in system folders, may revert ownership after a reboot. This is often due to Windows protecting critical files. In that case, avoid modifying those files unless absolutely necessary.
  • You can't find the user in the search. If the user is a Microsoft account, the name may be the first part of the email address. Try searching for that.

Frequently Asked Questions

Can I change ownership without being an administrator?

No. Changing ownership requires administrative privileges. You must be logged in as an administrator or have an admin provide credentials when prompted.

What is the difference between ownership and permissions?

Ownership is the right to control who has access to a file. Permissions are the specific actions (read, write, execute) that individual users or groups are allowed to perform. An owner can change permissions, but a user with permissions cannot change ownership.

Will changing ownership affect the file's contents?

No. Changing ownership only changes the metadata that records who owns the file. The actual data inside the file remains unchanged.

Can I set ownership to a group instead of a user?

Yes. You can assign ownership to a group like “Administrators” or “Users”. This is useful when multiple people need to manage the file. However, it's generally safer to assign ownership to a single user.

What should I do if I get a “You need to provide administrator permission” prompt?

Click Yes on the UAC prompt if your account is an administrator. If not, contact your system administrator or log in with an admin account.

Is it safe to take ownership of system files?

It's risky. System files are owned by TrustedInstaller for a reason. Taking ownership can cause system instability. Only do this if you're troubleshooting a specific issue and you have a backup of the file.