[[If System File Checker discovers that a protected file has been
overwritten, it retrieves the correct version of the file from the cache
folder (%Systemroot%\System32\Dllcache) or the Windows installation source
files, and then replaces the incorrect file.]]
[[/Scannow: Scans all protected system files immediately and replaces
incorrect versions with correct Microsoft versions.]]
Description of Windows XP and Windows Server 2003 System File Checker
(Sfc.exe)
http://support.microsoft.com/?kbid=310747
[[The second protection mechanism that is provided by the WFP feature is the
System File Checker (Sfc.exe) tool. At the end of GUI-mode Setup, the System
File Checker tool scans all the protected files to make sure that they are
not modified by programs that were installed by using an unattended
installation. The System File Checker tool also checks all the catalog files
that are used to track correct file versions. If any of the catalog files
are missing or damaged, WFP renames the affected catalog file and retrieves
a cached version of that file from the cache folder. If a cached copy of the
catalog file is not available in the cache folder, the WFP feature requests
the appropriate media to retrieve a new copy of the catalog file.]]
Description of the Windows File Protection Feature
http://support.microsoft.com/default.aspx?scid=kb;en-us;222193
What SFC does not do is register the replaced files.
You use the Regsvr32 tool (Regsvr32.exe) to register and unregister object
linking and embedding (OLE) controls such as dynamic-link library (DLL) or
ActiveX Controls (OCX) files that are self-registerable. Regsvr32 registers
..dll files as command components in the registry.
So you may need to register kernal32.dll after replacement.
To register kernal32.dll...
Start | Run | Type or paste this in the box:
regsvr32 kernal32.dll
Hit your Enter key.
You should see a message telling if it registered or not.
-----
You can also accomplish file replacement by dragging kernal32.dll from
windows\system32 to the desktop. kernal32.dll will be replaced immediately
from windows\System32\Dllcache. Look in the Event Viewer to see.
--
Hope this helps. Let us know.
Wes
MS-MVP Windows Shell/User
In
SmallBusGuy said:
Does anyone know if when you run "SFC /scannow", whether it will
replace a corrrupt "kernal32.dll" file in the \windows\system32
directory? I have some start-up restart issues and suspect that this
file may be corrupt, and I can't get the control consel to work with
my Raid 1 system for some reason. So, will SFC do it?
Thanks