Learn How to take Ownership of a file in Windows Vista Or Windows 7
In Windows 7 Or Vista when we try to edit or delete a system file it may show an error message as shown below. Sometimes we need to remove a system file which we consider it useless, for example mfpmp.exe etc. we need to take ownership of the file in order to rename it or delete it.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhK9G21p8ZUX6b6GruGibX185ayqaWvKJhVMfPiiPN1fb8h86oVHQGx9Bqs0A2WTJDRudn-QP_kTf_V6qFCciVfkCHBG23rFTl8S-AX4PDcxu8lBHT0GvPNPp_EUx7go80jJWxKCMFicVl1/s400/Windows7a.png)
Step 1: Open command prompt (Press Start+R, Type cmd and Enter).
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjY0xCKEvRC3HJq-c9NL1A3yOlf8joVrUcx3OGCft08m49LGoUdXfwP8_RAMhwXCpciRoj2seKQqhAdl4kb8fPjuCIxlGWVg4DCnmjGl8wCDD8mvj9H7dCHYWkC10QGsTc1yrPcn0YiwCaM/s400/Windows7d.png)
Example: takeown /f C:\Windows\System32\mfpmp.exe
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhuO2OawxZC-0Q7Sf4vMfZgTvO6yy-_IYpq5ZcGYKCZXVgT-yEJ0neYm3ykRq9Zuml13WTKqObv1imfLsiN3_zzLpkoeNRI6DsrzHHNfEtLpGN2zvpLBzUf0poooA_ijfMq05NwFeBMIB5O/s400/windows7c.png)
icacls (Full path of the file and file name) /grant (user name):F and press Enter
For example, icacls C:\Windows\System32\mfpmp.exe /grant DENNIS:F
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9WkPW82IjOKsDhssyafqhhP4k5YGcQ63fh_WS26prrDNJhjFtdCl0xhgxVBfaHoaoZVvxF63pAd0fWsAgnNfM4AMnKf9A04zDFHinU6hrH7sqbr4XaH73KWCWdI76SjytHl3rVaViQLSP/s400/windows7b.png)