RE: Error - SVCHOST.EXE

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Jason Hall [MSFT] (v-jashal_at_online.microsoft.com)
Date: 05/14/04


Date: Fri, 14 May 2004 19:04:04 GMT


--------------------
>Sender: "Von" <anonymous@discussions.microsoft.com>
>Subject: Error - SVCHOST.EXE
>Date: Fri, 14 May 2004 09:55:26 -0700
>
>Whenever I try to do a download to upgrade my Windows for
>a virus, etc. I end up getting this message and don't know
>what to do about it or where it is coming from. I am
>using Windows 2000 Professional.
>
>"SVCHOST.EXE generated errors and will be closed by
>windows. Need to restart program."
>
>When I restart and try again I get the same message.
>result is I never can update.
>
>HELP!!!
>
>Thanks
------------------

The thing about SVCHOST is that it holds many processes, so if one crashes
than the whole .exe crashes
You may notice that there are generally a couple of instances of SVCHOST
running at any given time.
>From what you say, it looks like it's the update service that is causing
the issue

You can configure the machine so that when wuauserv (Automatic Updates)
starts it is in it's own SVCHOST.
Then you can a) prove that it is only wuauserv that is causing the issue,
and b) call Microsoft Support to have the issue resolved
I am sorry that I don't know exactly what the fix for your issue is.

1.
- In the svchost key (HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows
NT\CurrentVersion\SvcHost) create a new REG_MULTI_SZ value named "TempGrp".
- For the data, enter the name of the service you want to split out.
- So this will look like the following in our example: TempGrp
REG_MULTI_SZ wuauserv

2.
- Under the svchost key, create a new key with the name "TempGrp"

3.
- For the new TempGrp key create the following value:
CoInitializeSecurityParam REG_DWORD 1

4.
- Locate the wuauserv key
(HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\wuauserv)
-Change the ImagePath value to read: %SystemRoot%\System32\svchost.exe -k
TempGrp

5.
- Restart the machine. The Automatic Updates service will now start in it's
own svchost.

-- 
~~ JASON HALL ~~
~ Performance Support Specialist,
~ Microsoft Enterprise Platforms Support
~ This posting is provided "AS IS" with no warranties, and confers no 
rights. 
~ Use of included script samples are subject to the terms specified at 
http://www.microsoft.com/info/cpyright.htm 
~ Note:  For the benefit of the community-at-large, all responses to this 
message are best directed to the newsgroup/thread from which they 
originated.  


Relevant Pages

  • Re: Windows Update Fails on "Checking for..."
    ... After running the regsvr32 command with each of the dll's, ... the net.exe start wuauserv command. ... single-clicked on SvcHost, not the netsvcs key that appears under SvcHost ... Microsoft MVP - Windows Shell/User ...
    (microsoft.public.windowsupdate)
  • Re: SVCHOST 100% CPU - Process hog wuaueng.dll
    ... When I kill wuauserv, wuaueng.dll kicks in. ... Les Connor [SBS MVP] ... Find the PID for the particular svchost process that's using high CPU, ...
    (microsoft.public.windows.server.sbs)
  • RE: Remote...trying to access Microsoft Generic Host Process for Win32
    ... > Norton Anti Virus 2004. ... Service Host –Generic Host Process for Win32 Services. ... SVCHOST is a generic process which acts as a host ... Windows XP Professional and Windows 2003 you can find out what DLL-based ...
    (microsoft.public.security)
  • svchost.exe
    ... found you missed a virus. ... Windows 2000/XP/2003 only. ... At startup SVCHOST checks the Services ... TLIST -s command from a Command Prompt. ...
    (microsoft.public.windowsxp.help_and_support)
  • "svshost.exe"
    ... At startup SVCHOST checks the Services ... Under Windows XP Professional and Windows ... TLIST -s command from a Command Prompt ... then you most likely have a virus (see ...
    (microsoft.public.windowsxp.perform_maintain)