How to Kill the Task Manager With the Windows Command Line

Writing scripts to automate tasks is an important skill for Windows administrators, and although Windows is primarily graphics-based, there are still a number of powerful tools available that can be used from the Windows command line. When a process is started by a script, it often needs to be closed before the script can continue. The command line tool "Taskkill" performs this task by forcing a process to shut down. If required, the "Taskkill" command can be used to kill the Task Manager from the command line.

...
Server administrators can use the "Taskkill" command to shut down rogue processes in Windows.

Step

Click on the Windows "Start" button, then click "All Programs." Click on the "Accessories" folder to open, and then click on "Command Prompt" to launch the Windows command line.

Step

Type "tasklist" to see a list of all the running processes. Task Manager should be displayed as "taskmgr.exe."

Step

Type "taskkill /IM taskmgr.exe" to kill the Windows Task Manager. The process will be instantly shut down and a success message displayed.