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 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 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...

Oxford Advanced Learner's Dictionary: The Legit App and Free Alternatives

Short answer: the Oxford Advanced Learner's Dictionary (OALD) is one of the best tools for learning English properly, and it is worth getting the official app rather than a cracked APK. Cracked dictionary APKs are risky and often ship without the real audio. Below is what makes OALD special and the free apps I reach for day to day. Why OALD is different from a normal dictionary OALD is built for learners, not native speakers. It explains 184,500 words and meanings using a simple 3000-word defining vocabulary, so definitions are actually easy to understand. It includes real recorded British and American pronunciation (not text-to-speech), an integrated thesaurus, and over 83,000 collocations that show which words naturally go together. The feature most people overlook: collocations This is the non-obvious reason I recommend OALD to anyone serious about English. Knowing a word is easy; knowing which words go with it is what makes you sound fluent. OALD highlights those pairi...