Restore System Files

M

Michael Dobony

I have a computer I am working on that is infected by viruses in the system
files. I know there is a command to check the system files and replace
corrupt or missing ones with the originals. I am running antivirus on it
right now, but need this command. Anybody know what comman/app this is that
checks the system files?

Mike D.
 
J

Jim

sfc /scannow
You will need a distribution CD which has the same version as your computer.

Jim
 
J

Jose

I have a computer I am working on that is infected by viruses in the system
files. I know there is a command to check the system files and replace
corrupt or missing ones with the originals. I am running antivirus on it
right now, but need this command. Anybody know what comman/app this is that
checks the system files?

Mike D.

The System File Checker will, by default on XP SP3, verify 3498 files
that XP considers important protected files. If it finds a problem or
the built in WIndows File Protection needs to replace a file, it will
do so quickly and silently and put an event in the Event Log something
like this:

Event Type: Information
Event Source: Windows File Protection
Event Category: None
Event ID: 64002
Description:
File replacement was attempted on the protected system file c:\windows
\system32\taskmgr.exe.
This file was restored to the original version to maintain system
stability.

When sfc /scannow run successfully, you will only see a starting and
complete message in the Event Log. It can take a long time to run.

Note that sfc /scannow will not run in Safe Mode (try it) and will
generate this error if you try:

Windows File Protection could not initiate a scan of protected system
files.
The specific error code is 0x000006ba [The RPC server is
unavailable.].


You cannot start the RPC Server in Safe Mode either.

Unless your system has been compromised by malicious software or the
built in Windows File Protection function is broken SFC, should find
nothing to do. It will give you a good feeling if it runs without
finding anything. If it finds something to do, you have now or have
had some other problem.

If you have SP3 installed and only posses an SP1 or SP2 installation
CD, running sfc /scannow will complain - a lot.

This is because it is trying to match and compare files and the
installed SP does not match up with what is on the installation CD.

You can read about why and perhaps make an adjustment to get it to
work by reading this article. Whether it works or not depends on how
your system was built:

http://www.updatexp.com/scannow-sfc.html

To prevent these kinds of messages (not necessarily errors), you can
use your old XP installation CD to make a new installation CD with SP3
included (slipstream) and then run sfc /scannow using the up to date
CD as a reference. This slipstreamed CD is a good thing to have
anyway in case you need to fix something some other day.

Thinking that running sfc /scannow will work right out of the chute is
an expectation that generally exceeds reality unless you are prepared
in advance with an installation CD that matches your currently
installed service pack (usually you have to make such a CD).

It most certainly should run without a hitch when all the pieces are
in place and result in a warm fuzzy feeling, but I have personally
never seen it resolve any problem that was not caused by something
else and will never even recommend it, but that could just be me.

The advice to "run sfc /scannow" is rarely preceded by the "before you
run sfc /scannow..." advice so running it will almost always generate
more confusion, concern and questions shortly afterwards. Sometimes
the "Try running sfc /scannow in Safe Mode..." advice follows, but
that doesn't work either.

Please do try it though and see how you get on. It won't hurt
anything and you should want it to work. If it doesn't work, we can
try to make it work to make you feel better. It makes me feel better
to see it find nothing to do and not complain.

If you are having some particular issue of suspicious files, describe
what the issue is and we can help with that.
 
G

glee

Michael Dobony said:
I have a computer I am working on that is infected by viruses in the
system
files. I know there is a command to check the system files and replace
corrupt or missing ones with the originals. I am running antivirus on
it
right now, but need this command. Anybody know what comman/app this is
that
checks the system files?

Mike,
You've gotten some good explanations on how to run SFC to do what you
describe. The problem is if you have infected system files, the chances
are good you have root kits that hide themselves, and SFC running in
Windows will NOT be able to replace them, and probably will not even be
able to detect them.

Using SFC from Windows, in an attempt to remove infected system files,
is going to be, in all likelihood, an exercise in futility.

You *may* be able to remove some of this type of infection with a
program like Malwarebytes Anti-Malware (MBAM), but if root kits are
present, MBAM (or any scan run while Windows is running) is simply not
going to be able to detect and/or remove them.

In that case, you would have to run an updated virus scan from a
bootable CD, while Windows was not loaded. Avira makes one such disc
creator, the Avira Rescue System. On severely infected systems, even a
successful removal from outside Windows cannot guarantee your computer
is totally clean, and a format and re-load is then the best solution.

I hope this helps.
 
J

Jose

I have a computer I am working on that is infected by viruses in the system
files. I know there is a command to check the system files and replace
corrupt or missing ones with the originals. I am running antivirus on it
right now, but need this command. Anybody know what comman/app this is that
checks the system files?

Mike D.

Perform some scans for malicious software, then fix any remaining
issues:

Download, install, update and do a full scan with these free malware
detection programs:

Malwarebytes (MBAM): http://malwarebytes.org/
SUPERAntiSpyware: (SAS): http://www.superantispyware.com/

They can be uninstalled later if desired.

If you still think you have issues, describe the issue as best you can.
 
K

Ken Blake, MVP

I have a computer I am working on that is infected by viruses in the system
files.


How did you determine that? How many viruses? *What* viruses? What
files are infected?

I know there is a command to check the system files and replace
corrupt or missing ones with the originals.


You are perhaps thinking of System Restore, but be aware that it will
not be effective against most viruses.

I am running antivirus on it


*What* anti-virus program? Be aware that they are far from equally
good.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top