How to take ownership of a Windows File

If you have a stubborn file that you cannot delete or move, then you will need to take ownership of the file to allow you to carry out any action on it. To do this is a pretty simple process, just follow our step by step guide below to carry this out and enable you […]

How To Take Ownership Of A Windows File
If you have a stubborn file that you cannot delete or move, then you will need to take ownership of the file to allow you to carry out any action on it. To do this is a pretty simple process, just follow our step by step guide below to carry this out and enable you to take control back of your files!

Instructions

First of all, you will require an elevated command prompt. So, click the Start button and type in CMD which should bring up the command prompt option in your start menu, instead of left clicking the command prompt, right click on it and select Run as Administrator: 1 This will then open up an elevated command prompt as you can see from the top of the window: 2 Then type in the following commands, hitting the Enter key after each one:
  • takeown /F “PATH TO FILE”
  • icacls “PATH TO FILE” /grant administrators:F
3 ICACLS You will now have full ownership of the file stated and you should now be able to go ahead with changing or deleting the file.

Comments

If you have any questions or feedback on this guide, please feel free to leave us a message in our comments section below and we will get back to you as soon as we can.
🛠️

Gear We Recommend

A few general tech accessories worth having alongside this.

Browse our General Tech Accessories picks on Amazon

As an Amazon Associate, TechyGeeksHome earns from qualifying purchases.


Discover more from TechyGeeksHome

Subscribe to get the latest posts sent to your email.

Andrew Armstrong

Andrew Armstrong is a UK-based IT professional with 26+ years of hands-on experience in Windows, Windows Server, SCCM/ConfigMgr, Active Directory, PowerShell, and enterprise infrastructure.

He founded TechyGeeksHome in 2010 and has published over 1,500 practical guides covering real-world IT problems and solutions. When not solving IT problems,

Andrew develops free Windows utilities including Ultimate Settings Panel, which has been downloaded over 850,000 times.