Think Like a Computer
No ads, no affiliate links, no software recommendations you did not ask for.

Take Ownership of a Folder in Windows: When and How

Learn how to take ownership of a folder in Windows, when it's necessary, and why taking ownership of system folders causes more problems than it solves.

Taking ownership of a folder in Windows is a permission change that grants you full control over that folder and its contents. It’s a powerful tool, but it’s frequently misused. This guide explains the difference between ownership and permissions, when taking ownership is the right move, and why applying it to system folders is a common mistake that can break your system.

How Windows Permissions Actually Work

Windows uses a security model where every file and folder has an owner and a set of permissions. The owner is the account that has ultimate authority over the object—they can change permissions, even for administrators. Permissions, on the other hand, are specific rules that define what users or groups can do (read, write, execute, etc.).

When you try to access a file or folder, Windows checks the permissions. If your account or a group you belong to is explicitly denied, you’re blocked. If you’re not listed at all, you’re also blocked. If you’re granted access, you get in. The owner can always modify permissions, but that doesn’t automatically give them access—they must grant themselves the appropriate permissions.

The key point: Taking ownership is not the same as granting permissions. Ownership is a prerequisite for changing permissions, but it doesn’t bypass them. If you take ownership of a folder, you still need to set permissions to actually access it.

When Taking Ownership Is the Right Move

Taking ownership is appropriate in specific scenarios, usually when you need to recover access to data after a system change or a user account issue. For example:

  • You’ve replaced a hard drive from another computer and need to access files that were owned by the old user account.
  • A user account was deleted, and you need to clean up their files.
  • A previous administrator set restrictive permissions and left the company.

In these cases, taking ownership of the specific folder (like a user profile folder) is a legitimate step to regain control. However, it should be done with caution and only on the folders you actually need.

The Dangers of Taking Ownership of System Folders

System folders—like C:\Windows, C:\Program Files, or C:\System Volume Information—are protected by Windows for a reason. They contain critical operating system files, and the permissions are carefully designed to prevent accidental or malicious modification.

When you take ownership of a system folder and grant yourself full control, you can:

  • Break Windows updates: Updates may fail to install because the system can’t properly replace files.
  • Cause system instability: Modifying or deleting protected files can lead to crashes, blue screens, or boot failures.
  • Create security vulnerabilities: Opening up system folders to any user can allow malware to tamper with critical files.

The problems caused by taking ownership of system folders often outlast the original issue. For example, if you take ownership to fix a “Access Denied” error in C:\Windows\System32, you might temporarily get in, but you’ll likely break the system in the process. The standard advice to “take ownership” for such errors is misguided—it’s a sledgehammer when a scalpel is needed.

How to Take Ownership of a Folder (When Appropriate)

If you’ve confirmed that taking ownership is necessary, here’s how to do it safely using built-in tools.

Using File Explorer (GUI)

  1. Right-click the folder and select Properties.
  2. Go to the Security tab.
  3. Click Advanced.
  4. Next to Owner, click Change.
  5. Enter your username or “Administrators” and click Check Names, then OK.
  6. Check the box Replace owner on subcontainers and objects if you want to take ownership of everything inside.
  7. Click OK to apply.

After taking ownership, you may still need to grant yourself permissions. In the same Advanced Security Settings window, click Add, then Select a principal, and grant Full control.

Using Command Prompt (Command Line)

Open Command Prompt as Administrator. Use the takeown command to take ownership, and icacls to grant permissions.

takeown /f "C:\path\to\folder" /r /d y
  • /f specifies the folder path.
  • /r applies recursively to all files and subfolders.
  • /d y automatically answers “Yes” to the prompt to take ownership for files you don’t have access to.

This command takes ownership but does not grant permissions. To grant full control, use icacls:

icacls "C:\path\to\folder" /grant "%USERNAME%":(OI)(CI)F /T
  • (OI) and (CI) inherit permissions to files and subfolders.
  • F grants full control.
  • /T applies to all subfolders and files.

What the output means: takeown will output “SUCCESS: The file (or folder): …” for each item it processes. icacls will output “processed file: …” and “Successfully processed 1 files; Failed processing 0 files” when done.

Using PowerShell (Alternative)

PowerShell provides a more flexible way to manage ownership and permissions.

$folder = "C:\path\to\folder"
$admin = New-Object System.Security.Principal.NTAccount("BUILTIN\Administrators")
$acl = Get-Acl $folder
$acl.SetOwner($admin)
Set-Acl $folder $acl

Then grant permissions:

$rule = New-Object System.Security.AccessControl.FileSystemAccessRule("BUILTIN\Administrators", "FullControl", "ContainerInherit,ObjectInherit", "None", "Allow")
$acl.AddAccessRule($rule)
Set-Acl $folder $acl

These commands change the owner to the Administrators group and grant full control. The output is minimal—errors will appear in red if something goes wrong.

What People Get Wrong About Taking Ownership

The most common mistake is assuming that taking ownership is the universal fix for any “Access Denied” error. It’s a natural assumption because the error suggests you lack control, and ownership sounds like the ultimate control. However, most “Access Denied” errors are due to permission issues, not ownership issues. Taking ownership when a simple permission change would suffice is overkill and can cause collateral damage.

Another misconception is that taking ownership of a system folder is harmless because you’re an administrator. Administrators do not have automatic access to everything—Windows uses a security boundary that even admins must respect. When you force ownership, you’re bypassing that boundary, and the system may not function correctly afterward.

Why it’s a natural mistake: The error message “You need permission to perform this action” is vague. It doesn’t tell you whether it’s an ownership or permission problem. And since taking ownership is a well-known trick, it’s easy to reach for it. But it’s a sledgehammer, and most of the time you need a scalpel.

Comparison: When to Use Ownership vs. Permissions

SituationTake Ownership?Change Permissions?When NOT to Take Ownership
Access files from an old hard driveYesMaybeIf the folder is a system folder
Fix “Access Denied” on a user folderNoYesIf the error is due to a simple permission misconfiguration
Modify files in Program FilesNoYes (with caution)If the folder is a system folder
Recover data after a user account deletionYesYesIf the folder is a system folder
Clean up temp files in Windows\TempNoYesIf the folder is a system folder

How to Check If You Really Need to Take Ownership

Before taking ownership, try these steps:

  1. Check current permissions: Right-click the folder, go to Properties > Security. See if your account is listed. If not, you might just need to add it.
  2. Try changing permissions first: If you have administrative rights, you can often grant yourself access without changing ownership. In the Security tab, click Advanced, then Add your account with appropriate permissions.
  3. Check if the folder is a system folder: If the path includes C:\Windows, C:\Program Files, or other protected locations, do not take ownership. Instead, look for the specific file or subfolder causing the issue and address that.

What to Do If You’ve Already Taken Ownership of a System Folder

If you’ve already taken ownership of a system folder and are experiencing problems, you can try to restore the default permissions. This is not always easy, but the built-in tool icacls can help reset permissions to defaults for system folders.

icacls C:\Windows /reset /t /c /q
  • /reset replaces the ACL with the default inherited permissions.
  • /t applies to all subfolders.
  • /c continues on errors.
  • /q suppresses success messages.

Note: This command may not fully restore the original permissions, and it could take a long time. In severe cases, you may need to repair Windows using the System File Checker or DISM.

sfc /scannow
dism /online /cleanup-image /restorehealth

These commands check and repair system files. If the damage is extensive, a system restore or repair install may be necessary.

Summary

Taking ownership of a folder is a powerful tool that should be used sparingly. It’s appropriate for recovering data from old drives or deleted accounts, but it’s not the answer to every “Access Denied” error. Avoid taking ownership of system folders—the risks far outweigh the benefits. Always start with the least destructive solution: check permissions, try changing them, and only escalate to ownership when necessary.

Common questions

How do I take ownership of a folder in Windows?

Right-click the folder, go to Properties > Security > Advanced, and click Change next to Owner. Enter your username or 'Administrators', check 'Replace owner on subcontainers and objects', and click OK. You may also need to grant yourself permissions afterward.

Why can't I access a folder even after taking ownership?

Taking ownership doesn't automatically grant permissions. You need to add your account to the folder's permissions list and grant full control. Use the Security tab or icacls command to do this.

Is it safe to take ownership of C:\Windows?

No. Taking ownership of system folders like C:\Windows can break Windows updates, cause system instability, and create security vulnerabilities. It's rarely necessary and often causes more problems than it solves.

What's the difference between ownership and permissions?

Ownership is the right to control permissions on an object. Permissions are the specific rules that define who can access an object and how. Taking ownership lets you change permissions, but it doesn't bypass them.

Can I reset permissions after taking ownership of a system folder?

You can try using 'icacls C:\Windows /reset /t /c /q' to reset permissions to defaults, but it may not fully restore them. Running 'sfc /scannow' and 'dism /online /cleanup-image /restorehealth' can repair system files. In severe cases, a repair install may be needed.

Read next