how many instance of svchost.exe should be running?

Discussion in 'other security issues & news' started by tom772, Aug 9, 2005.

Thread Status:
Not open for further replies.
  1. tom772

    tom772 Guest

    I have counted 8 instances of the above running is this normal?

    T
     
  2. G-Force

    G-Force Guest

    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
     
  3. zcv

    zcv Registered Member

    Joined:
    Dec 11, 2002
    Posts:
    355
    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
     
  4. G-Force

    G-Force Guest

    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
     
  5. tom772

    tom772 Guest

    thanx guys:)
     
  6. tom772

    tom772 Guest

    once you have got the results how do you cut and paste in DOSo_O?
     
  7. WSFuser

    WSFuser Registered Member

    Joined:
    Oct 7, 2004
    Posts:
    10,632
    right-click and click paste.
     
  8. G-Force

    G-Force Guest

    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
     
  9. G-Force

    G-Force Guest

    Oop's forgot :D, it's just rt clk > select all > paste notpad, here, wherever ... edit to suit.

    GF
     
  10. zcv

    zcv Registered Member

    Joined:
    Dec 11, 2002
    Posts:
    355
    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
     
Loading...
Thread Status:
Not open for further replies.