PDA

View Full Version : how many instance of svchost.exe should be running?


tom772
August 9th, 2005, 12:22 PM
I have counted 8 instances of the above running is this normal?

T

G-Force
August 9th, 2005, 04:12 PM
Tom,

That all depends on the amount of services you have running. By Googling svchost.exe or something interesting like ....
"Mark's Sysinternals Blog : Running Windows with No Services" ... you'll gain some perspective. My setup allows two. ;)


GF

zcv
August 9th, 2005, 06:12 PM
Hello Tom,

XP "bundles" services under SVCHOST.EXE. To see exactly what is running in each instance of svchost:

Open a cmd box: start > run > type cmd > ok and type:
tasklist /svc > c:\tasklist.txt

*space between tasklist and / or copy/paste into the cmd box.

That will create a .txt file on C:\ opens with Notepad

To relate the Task Manager entries and the tasklist.txt entries: they are tied together thru the PID number. Make sure that in TM the PID is showing. If not, click on view > Select Columns.

tasklist.exe is only on XP-pro, so if running Home you'll need to download it from here:

http://www.computerhope.com/download/winxp.htm

Then move it to \WINDOWS\System32

Regards - Charles

G-Force
August 9th, 2005, 06:27 PM
Nice post Charles! :)

Yes Tom that file runs fine on XP Home, along with the whole kitten-kaboodle of command line tools from SysInternals. ;)


GF

tom772
August 10th, 2005, 11:21 AM
thanx guys:)

tom772
August 10th, 2005, 12:05 PM
-{ Quote: "Hello Tom,

XP "bundles" services under SVCHOST.EXE. To see exactly what is running in each instance of svchost:

Open a cmd box: start > run > type cmd > ok and type:
tasklist /svc > c:\tasklist.txt

*space between tasklist and / or copy/paste into the cmd box.

That will create a .txt file on C:\ opens with Notepad

To relate the Task Manager entries and the tasklist.txt entries: they are tied together thru the PID number. Make sure that in TM the PID is showing. If not, click on view > Select Columns.

tasklist.exe is only on XP-pro, so if running Home you'll need to download it from here:

http://www.computerhope.com/download/winxp.htm

Then move it to \WINDOWS\System32

Regards - Charles" }-
once you have got the results how do you cut and paste in DOS????

WSFuser
August 10th, 2005, 01:03 PM
right-click and click paste.

G-Force
August 10th, 2005, 01:12 PM
What zcv gave you is the command to output tasklist to file, there it's easy to c/p ...

tasklist /svc > c:\nameyourfilehere.txt

... this part doing the work ... >(output)c:\(location) ... remembering a space following the base command.

Syntax spacing will also work like this ...

tasklist /svc >c:\nameyourfilehere.txt

Likewise you could output directly to a folder knowing it's path ...

tasklist /svc >c:\folderofchoice\outputfilename.txt

Tasklist /? will cover the rest of the options, like most console tools. ;)


GF

G-Force
August 10th, 2005, 01:18 PM
Oop's forgot :D, it's just rt clk > select all > paste notpad, here, wherever ... edit to suit.

GF

zcv
August 10th, 2005, 06:47 PM
Hi Tom,

once you have got the results how do you cut and paste in DOS
What are you trying to do? Post the results here?

DOS has nothing to do with this, if that's what you're trying to do. Double click on tasklist.txt, it will open, then highlight or Edit > select all and then right click > copy whatever you want to paste, either to another text editor like Wordpad - Notepad - MS Word and so on. If you want to post it here, then right click in the message space > paste.

Regards - Charles