Subscribe to How-To Geek

What is conhost.exe and Why Is It Running?

You are no doubt reading this article because you are wondering what on earth this conhost.exe process is doing in Task Manager, and why it’s running on your shiny new Windows 7 PC. We’ve got the answer for you.

image

So What Is It?

The conhost.exe process fixes a fundamental problem in the way previous versions of Windows handled console windows, which broke drag & drop in Vista.

It’s a completely legitimate executable—as long as it’s running from the system32 folder, and is signed by Microsoft. Scanning your computer for viruses is never a bad idea, though.

Wait, What? So Why Do I Need It?

Oh, you wanted more information? I suppose I can oblige with some background information. Essentially, there’s a problem with the way the console process works on previous versions of Windows—they are all hosted under the csrss.exe (Client Server Runtime Process) service. This process runs as a system-privileged account.

If you take a look at the command prompt on Windows XP, you’ll probably notice that the window doesn’t use the active theme at all. This is because the CSRSS process doesn’t have the ability to be themed.

image

If you take a look at the console in Windows Vista, it looks like it uses the same theme as everything else, but you’ll notice that the scrollbars are still using the old style (look closely). This is because the DWM (Desktop Window Manager) process handles drawing the title bars, but underneath it still works the same way, and the scrollbars are part of the window itself.

image

You might also notice that Windows Vista broke the ability to drag and drop files from Explorer straight into the command prompt. It just flat out doesn’t work, because of security issues between the CSRSS process running with a higher level of privileges.

Windows 7 Does It Differently

Checking it out in Process Explorer under Windows 7 shows that the conhost.exe process is running underneath the csrss.exe process.

image

The conhost.exe process sitting in the middle between CSRSS and cmd.exe allows Windows 7 to fix both of the problems in previous versions of Windows—not only do the scrollbars draw correctly, but you can actually drag and drop a file from Explorer straight into the command prompt:

image

And it’ll paste in the path onto the command line. (of course this example isn’t very useful).

image

Still Aren’t Convinced?

I can see our relationship has some trust issues. If you really want to be sure, check out the file properties for the conhost.exe executable, and you’ll see that the description says Console Window Host:

image

If you look at the details of the process from within Process Explorer, you’ll notice that the ComSpec is set to cmd.exe, a clear indication that it’s hosting the command prompt.

image

So now you know what the conhost.exe process does, and why you should never attempt to delete it. Ever.

| More
This article was originally written on 10/14/09 Tagged with: Windows 7, Windows 7 Tips

Daily Email Updates

You can get our how-to articles in your inbox each day for free. Just enter your name and email below:


Name:
Email:

Comments (7)

  1. stz8

    Thanks for the awesome writeup! I was wondering what this process is and I assumed it was something with the command prompt since when I ended the task the window got killed too, but this was very enlightening! Thanks a ton!

  2. crankyguy

    I had no idea that you could drag n drop to the command prompt. Not sure if I need to use that, but it’s a good tip just in case.

  3. jon

    Sweet! Windows 7 is looking to be a great upgrade.

    I never noticed the scrollbars thing before. Weird!

  4. KBPrez

    FUNNY write-up. BTW, it was very informative too. THANX!

  5. MichaelonTech

    Great post….The best part was I had no idea you can now drag’n'drop files or paths into the CMD window in Windows 7 …..

    Thanks for the info!

  6. Abraxas

    Apparently it starts one console per core, because I have four instantiations of conhost.exe running under csrss.exe.

  7. j-o

    Thanks. But I can not have this window commong up ALL the time on my computer. please tell me how i can stop this from disterbing me./j-o “in sweden and not knowing things about computerstuff”


Leave a Comment




Leave your friendly comment here.

If you have a computer help question, click here to leave it on the forums instead.

Note: Your comment may not show up immediately on the site.

Our Friends
Getting Started


About How-To Geek
What Is That Process?
svchost.exe
jusched.exe
dwm.exe
ctfmon.exe
wmpnetwk.exe
mDNSResponder.exe
wmpnscfg.exe
rundll32.exe
wfcrun32.exe
Ipoint.exe
Itype.exe
Wfica32.exe
Mobsync.exe
conhost.exe
Dpupdchk.exe Adobe_Updater.exe

Copyright © 2006-2009 HowToGeek.com. All Rights Reserved.