1. Home
  2. Windows

Fix svchost.exe Crash Caused By McAfee Or Virus

SvcHost.exe is the most important part of Windows, deleting it would crash your entire operating system. You are probably reading this post because McAfee Antivirus deleted your SvcHost file after false positive detection and you cannot login to your primary system. This was a mistake on the McAfee’s part but most viruses can also delete your SvcHost file. Thankfully we have a solution to fix it.

If you are using Windows XP with Service pack 3 installed then you can type the following and hit Enter.

copy c:\windows\ServicePackFiles\i386\svchost.exe c:\WINDOWS\system32\dllcache

This will copy the svchost.exe file to “c:\WINDOWS\system32\dllcache” folder. If svchost.exe is residing in system32 folder, then only write the path “c:\Windows\system32\” (without the quotes).

Mark van Driel & Maurits van der Schee have created a quick fix tool called SvcHostFix, for users who are stuck. It is a simple command line tool that will automatically copy back the svchost.exe file, thus fixing the problem. The program works like this:

  1. IF the file size of c:\windows\system32\svchost.exe is 0 bytes or the file doesn’t exist
  2. THEN IF the file size of c:\windows\ServicePackFiles\i386\svchost.exe is 0 bytes or the file doesn’t exist
  3. THEN copy that file to c:\windows\system32\svchost.exe
  4. ELSE IF the file size of c:\windows\system32\dllcache\svchost.exe is 0 bytes or the file doesn’t exist
  5. THEN copy that file to c:\windows\system32\svchost.exe
  6. ELSE copy (embedded) Windows XP SP3’s svchost.exe file to c:\windows\system32\svchost.exe

Simple as that! You can grab the tool from the link below. Note that it requires a minimum .NET 2 Framework installed.

Download SvcHostFix

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.