I recently received an e-mail form someone asking if it is possible to change the Task Manager in Windows. They had another application that they would like to use, instead of the built-in Task Manager. It is very possible to change the Task Manager, since I use Proces Explorer and have set it so I can use that application instead of Task Manager.
While Process Explorer provides this ability, many applications that provide the same functionality may not allow a user to replace the Task Manager. In this post I will not only show you how you can easily do this, but also how you can do this for almost any application within Windows.
Execute One Application, Get Another
Before continuing, I should provide a warning. This post will explain a process that involves editing the Windows registry. You must always be careful when editing the Windows registry as bad things could happen if you change the wrong key or value. If you follow the steps outlined below, you shouldn’t have any problems.
With that out of the way, let’s move on. When I enabled the “Replace Task Manager” setting in Process Explorer, I was curious as to how that was accomplished. When I right-clicked the taskbar and then clicked “Task Manager”, Process Explorer appeared. The same happened when I pressed CTRL+AL+DEL and clicked the “Task Manager” button. What was changed to accomplish this?
After doing some research I found my answer. In the Windows registry there is a little known key that allows you to execute a command whenever a specific file is run. In the case with Process Explorer, whenever the “taskmgr.exe” file was run, the “procexp.exe” file was executed instead.
To change the Windows to launch another tool instead of the Task Manager, you could use the following steps:
- Open the registry editor.
- Navigate to the following key: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options.
- Right-click on Image File Execution Options and then select New->Key.
- With the new key name highlighted, type taskmgr.exe and press Enter.
- Click the taskmgr.exe key and then right-click an empty area on the right side and select New->String Value.
- Rename the new string value to Debugger and press Enter.
- Double-click Debugger and then in the Value data field type in the full path to the file you would like to execute.
- Click OK to save you changes.
- Launch the Task Manager by one of the following methods:
- Right-click an empty are on the taskbar and select Task Manager.
- Press CTRL+AL+DEL and then click the Task Manager button.
- Click Start->Run or press the Windows Key+R and type taskmgr.exe.
- When you run Task Manager, the application you typed into the registry will open instead.
You can replace other applications in the same manner. I have tried it with Notepad, although with at times mixed results. I have used it to prevent applications from running by using a dummy execuable, one that doesn’t do anything, or called “rundll32.exe” with no parameters, which also does nothing.