How do I rename C:\Windows\System32\convert.exe?

I need to rename this command because it interferes with ImageMagick. I tried to run this in an administrator console:

C:\Users\Chloe>rename C:\Windows\System32\convert.exe C:\Windows\System32\convertNTFS.exe
The syntax of the command is incorrect.
C:\Users\Chloe>rename C:\Windows\System32\convert.exe convertNTFS.exe
Access is denied.

I also tried to rename it in Explorer. Nothing works!

5

2 Answers

It is usually not a good idea to rename system files (or change their NTFS permissions, after the next OS-Update this may be reversed back). Ideally contact your Software vendor (for ImageMagick) to request that they don't name their files with the same name as Windows system files.

A workaround hack, is to tell Windows to execute a different program when you are running convert.exe

Run something like this:

reg.exe add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\convert.exe" /v Debugger /t REG_SZ /d "C:\Program Files\ImageMagic\convert.exe" /f

I haven't tested this and I am not sure whether it works if the target has the same name as the source, but it is worth a try.

And you better remember you've done this if you even want to use to convert.exe to convert your file systems.

Another option is to put the ImageMagic folder into the path before %systemroot%.

I would really try to fix the application rather than changing system files.

6

To rename a file through Command Prompt, you can use the RENAME or REN command.

For example:

rename convert.exe new-convert.exe

However, before making this change, please copy a version of it to protect it in case something wrong.

copy convert.exe convert-copy.exe

Besides, if you have changed the ownership of convert.exe and now want to switch back to TrustedInstaller, then I would recommend searching for NT SERVICE\TrustedInstaller instead of TrustedInstaller

Take a look at this guide

2

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like