# Thread: Taking the ownership of system file

1. ## Taking the ownership of system file

There is a file in system32 folder and i need to rename it , whenever i try to rename it i fail , because it is protected by the operating system , i googled my issue and i didn`t understand most of answers , could you help me with that ?

2. Create a batch file and paste the following commands on it : [Basically i choose calc.exe as an exmpale]
Code:
```takeown /f "C:\Windows\System32\calc.exe"
CACLS "C:\Windows\System32\calc.exe" /e /p Administrators:F
REN C:\Windows\System32\calc.exe calc.eee```
Line 1 : takes the ownership of the system file and set it back to you
Line 2 : it modifies the permissions and set it FULL Modifications for you as F at the end of the line means FULL
Line 3 : renaming the mspaint.exe to mspaint.eee

by the way i tested the batch on windows 7 and it was successful , but when i tried that on windows XP , it was mot successful as windows xp is keep pasting the original mspaint.exe again and again .

So try and tell me your feedback