Skip to main content

How to Take Ownership of a File or Folder in Windows

File permissions on a computer

Short answer: when Windows says "Access Denied" or "You need permission," you can fix it by taking ownership of the file or folder and granting your account full control. Do it through the item's Properties > Security > Advanced dialog, or in one command with takeown and icacls. Here is how, safely.

The safe warning first

Only take ownership of files that are genuinely yours (like data left by an old user account or an external drive). Do not change ownership of core Windows system files, that can break the OS or create security holes. For your own locked-out data, though, this is exactly the fix.

Method 1: the Properties dialog

  1. Right-click the file/folder > Properties > Security tab > Advanced.
  2. Next to Owner, click Change, type your username, click Check Names, then OK.
  3. Tick Replace owner on subcontainers and objects (for a folder), then Apply.
  4. Back on the Security tab, click Edit, select your user, and check Full control, then OK.

Method 2: one command (fastest)

Open Command Prompt as Administrator and run:

takeown /f "C:\\Path\\To\\Folder" /r /d y
icacls "C:\\Path\\To\\Folder" /grant %username%:F /t
FlagMeaning
/rRecursive (include everything inside)
/grant %username%:FFull control for you
/tApply to all subfolders/files

The non-obvious tip: it is usually leftover permissions, not a virus

"Access Denied" on your own files, especially data from an old Windows install, another PC, or a previous user account, is almost always just leftover ownership pointing at an account that no longer exists on this PC. It is not a virus or corruption. Taking ownership simply re-points the file to your current account, and the data was fine all along. Knowing that saves you from panicking or reformatting a drive that is perfectly healthy.

Frequently asked questions

How do I take ownership of a folder in Windows?

Right-click it > Properties > Security > Advanced, click Change next to Owner, enter your username, tick 'Replace owner on subcontainers', then grant your user Full control on the Security tab.

How do I take ownership using a command?

In an admin Command Prompt run takeown /f "path" /r /d y then icacls "path" /grant %username%:F /t to take ownership and grant yourself full control recursively.

Is it safe to take ownership of files?

Yes for your own data, like files from an old user or external drive. Do not change ownership of core Windows system files, as that can break the OS or create security risks.

Why do I get Access Denied on my own files?

Usually because the files' ownership still points to an old or non-existent account (from another PC or install). It is not a virus. Taking ownership re-points them to your current account.

Comments

Popular posts from this blog

How to Completely Uninstall Programs on Windows (Free Tools and Tips)

Short answer: you do not need a cracked Revo Uninstaller Pro, because Revo has a capable free version and there are free open-source alternatives that remove programs completely, leftover files and registry entries included. Here is how to uninstall cleanly and why leftovers matter. Why leftovers are a problem Windows' built-in uninstaller often leaves behind folders, registry keys and startup entries. Over time these accumulate, clutter your system, and occasionally cause conflicts when you reinstall software. A dedicated uninstaller sweeps them up. Free tools that remove programs completely Revo Uninstaller Free , uninstalls the program, then scans for and removes leftover files and registry entries. The free version covers what most people need. Bulk Crap Uninstaller , free, open source, and excellent for removing many programs at once and cleaning leftovers. How to uninstall cleanly with Revo Free Open Revo and select the program. Click Uninstall; let the progra...

How to Recover Deleted Files for Free (Better Than a Cracked Tool)

Short answer: you do not need a cracked 7-Data Recovery serial, because excellent free tools like Recuva and PhotoRec recover deleted files, and the most important factor is not the software at all, it is stopping use of the drive immediately. Here is how to recover files the safe, effective way. The one rule that decides success: stop using the drive When you delete a file, the data is not erased, the space is just marked reusable. The moment you keep saving new files, you risk overwriting the deleted data permanently. So the instant you realize something is gone: stop using that drive . Do not install recovery software onto it either, download it to a different drive or USB stick. The best free recovery tools Recuva , free, friendly, great for recovering deleted documents, photos and files from Windows drives and USB sticks. PhotoRec , free and open source, extremely powerful, especially for photos and media, though its interface is basic. Windows File History / backups , ...

How to Transfer Contacts Between Phones the Easy Way (2026)

Short answer: The easiest way to move contacts is to sync them to a cloud account first. Save contacts to your Google account on Android or iCloud on iPhone, then sign in to that same account on the new phone and they appear automatically. For everything else, export a vCard (.vcf) file and import it. Every time I set up a new phone the very first thing I want back is my contacts. Years ago this meant fiddly SIM copies and desktop software. These days I almost never touch a cable. Here are the modern methods I actually use, ranked from easiest to most manual. Method 1: Google account sync (best for Android) If your contacts are saved to your Google account rather than the phone itself, switching Android phones is basically automatic. On the old phone, open Settings > Accounts > Google and confirm Contacts sync is on. Wait a minute for the sync to finish, or tap the three-dot menu and choose Sync now . On the new phone, sign in with the same Google account during setup....