I need to rename a certain dll on my Windows 7 machine (a comctl32.dll, to be precise) in order to replace it with another version of this file.
I tried:
- [under: Right-click, properties, security, permissions, advanced, owner] changed owner to current user and [under: right-click, security] gave all possible permissions to current user. Tried [Right-click, rename] - can't rename it, access denied.
Started an admin cmd (elevated rights), and used the force:
takeown /f comctl32.dll icacls "comctl32.dll" /grant (current user):F rename comctl32.dll comctl32.old
Got permission denied.
- That made me angry so I started a shell as Systems user (following the steps oulined in [1]) and tried to rename the file using
rename comctl32.dll comctl32.old
in this shell. Resulted again in permission denied.
I thought the systems-shell gives me basically god-mode, so this is pretty upsetting! Anyone got any further suggestions on how to rename this file or what denies me access? I'm totally at loss!
//EDIT:
By now I also tried the Unlocker tool. It couldn't rename the file, but promised to try and do so after reboot. I rebooted the system but my old friend hasn't changed names still.
//EDIT 2:
Based on the downvotes and comments I would like to add a line of warning for my fellow users with the same question. Only do this if you know what and why you are doing it. Otherwise you might crash your system.
I in fact do know what I do: I need to replace a file that already IS corrupted. What I do not know is HOW to do it. So no need to mention the dangers here or downvote the question just because it might be dangerous to system integrity. In fact just using a system is in the end a danger to its integrity - why punishing a legitimate question for the same property?