How to repair corrupt system files on Windows Server 2008?

Windows Server 2008 SP1

There was some disk corruption on this production web server and it wouldn't boot up.  Chkdsk found some errors and fixed them at the file system level.

It still wouldn't boot due to registry corruption, so I copied registry files (system, software, sam, security, default, components) from c:\windows\system32\config\regback to c:\windows\system32\config

Then the server booted up.  The web site is now running fine, but there is still some file corruption. e.g.

When the firewall is switched on/off, the following message appears:

C:\Windows\AppPatch\AcLayers.DLL ie either not designed to run on
Windows or it contains an error. Try installing the program again using
the original installation media or contact your system administrator or
the software vendor for support.

When sfc is run to replace corrupted system files, it outputs the message:
Windows Resource Protection found corrupt files but was unable to fix some of them.

In c:\windows\logs\cbs\cbs.log it gives the reason:
Could not reproject corrupted file [ml:520{260},l:46{23}]"\??\C:\Windows\apppatch"\[l:24{12}]"AcLayers.dll"; source file in store is also corrupted

The log file lists other files it is fixing  e.g.
Move File: Source = [l:192{96}]"\SystemRoot\WinSxS\Temp\PendingRenames\3c4a45fce003ca01f10300009005d805._0000000000000000.cdf-ms", Destination = [l:104{52}]"\SystemRoot\WinSxS\FileMaps\_0000000000000000.cdf-ms"

...but AcLayers.dll seems to be the one that's failing.

I tried installing SP2 in the hope that it would upgrade corrupt files but it failed with error 0x8004100e.  Possibly because some part of WMI is corrupt, and is not being fixed by sfc.

How can I fix the file corruption so sfc runs clean, SP2 can be instaled and AcLayers.dll error messages go away?

Who is Participating?
ahmad2121Connect With a Mentor Commented:
ok if it is that recent there is no reason it should not be functioning.

Never seen that error with sfc and couldn't even find anything on it.

Since you said there is no repair with the windows 2008 disk, what about just doing an upgrade off of the Windows 2008 disk from windows? That should reinstall windows in a safe manner and save you the format.
1. Try this hotfix: (i know thereisn't one for 2k8 specifically, but it should work for you)

2. boot with the Windows 2008 CD, and perform a Repair? That should fix any file issues.

Also can you check your windows logs (app, security, system) and see if there are any meaningful errors?
jul17priAuthor Commented:
1) When I run the update for KB933590 it displays the message:
"The update does not apply to your system".

Your idea is to install an update that contains AcLayers.dll, right? Let's try a different update then.  I have installed all the recommended updates to date and Windows Update displays a list of the updates that have been installed.  How is it possible to find out which files are included in an update, to see whether AcLayers.dll is in that update?

2) The Windows 2008 install DVD does not have a repair option.  The only repair method is sfc, and that's not working.
Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

yeah that was what I was thinking.

To look up the files of an update, just look the update number on and it should list all the files and their versions.

ok I looked up that error you got when trying to run SP2, can you check:


and make sure that "Default Namespace" has the value "root\cimv2". I checked it on my 2k8 server, this is what it should be.

The problem with what you did (recovering the db from regbackup is that you have no idea how old that is, and when that backup was actually taken. You could have potentially lost tons of valuable registry data. Can you check the date on the backup and see if it's recent?
jul17priAuthor Commented:
I have been looking for file contents lists on msdn etc but can't find them. e.g. The last successful update was KB963707.  Where is the web page that tells us what's in it?  Or can we find out via Windows Update?  If Windows Update installed them then it must know what was in them.

I tried re-installing IE8 as that typically has many core system files but it says there is a more recent version already installed.

> recovering the db from regbackup is that you have no idea how old that is
The registry files were from the day before the corruption occurred.  How would an out-dated registry affect sfc's ability to repair system files?

> I looked up that error you got when trying to run SP2...
So did I.  The registry value is correct.  I think the corruption that's stopping SP2 is in the WMI system files rather than the registry.  That's why I'm focusing on getting sfc to work.
jul17priAuthor Commented:
What if the corrupted files were not in a Windows Update?  Presumably they would have to be extracted from the original installation DVD and placed wherever sfc expects to find them.

If so, how can AcLayers.dll be extracted from the installation DVD and where should it be copied to?
jul17priAuthor Commented:
OK, boot off the install DVD, go into Windows, then run the setup on the DVD, go as if to install Windows, select the option to upgrade...

...doing that now.
I think thats the best way for you right now.

I think your winsxs folder had some issues, sinces thats where Windows stores all the important information regarding dlls and registry. This is where SFC compares dlls to.
jul17priAuthor Commented:
Sorry...not boot of DVD...I should have said:
Boot up into the damaged Windows, insert the WIndows 2008 installation DVD, then run the setup on the DVD, go as if to install Windows, select the option to upgrade...

I was able to take a complete clone of the hard drive first, in case this failed.  Alternatively, I would want to back up all the data first.

Well, all the software seems to be there and working.  I'm sure some settings have been reset and I haven't worked out which yet but the server.

Another reason this is the best solution: it has probably thoroughly fixed the corruption I didn't know about, not just in system files but also Windows data files e,g, config, help, images etc.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.