Solved

How to repair corrupt system files on Windows Server 2008?

Posted on 2009-07-13
9
8,196 Views
Last Modified: 2012-05-07
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?

Thanks,
Julian
0
Comment
Question by:jul17pri
  • 5
  • 4
9 Comments
 
LVL 6

Expert Comment

by:ahmad2121
ID: 24843088
1. Try this hotfix:

http://support.microsoft.com/kb/933590 (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?
0
 

Author Comment

by:jul17pri
ID: 24843987
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.
0
 
LVL 6

Expert Comment

by:ahmad2121
ID: 24844069
yeah that was what I was thinking.

To look up the files of an update, just look the update number on msdn.microsoft.com 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:

HKEY_LOCAL_MACHINE\Software\Microsoft\Wbem\Scripting

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?
0
 

Author Comment

by:jul17pri
ID: 24844462
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.
0
Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

 
LVL 6

Accepted Solution

by:
ahmad2121 earned 500 total points
ID: 24844505
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.
0
 

Author Comment

by:jul17pri
ID: 24844584
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?
0
 

Author Comment

by:jul17pri
ID: 24844795
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.
0
 
LVL 6

Expert Comment

by:ahmad2121
ID: 24844821
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.
0
 

Author Comment

by:jul17pri
ID: 24846913
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.

Thanks,
Julian
0

Featured Post

The problems with reply email signatures

Do you wish that you could place an email signature under a reply? Well, unfortunately, you can't. That great Exchange/Office 365 signature you've created will just appear at the bottom of an email chain. What a pain! Is there really no way to solve this? Well, there might be...

Join & Write a Comment

Recently, I was asked to look into SCCM 2007 by my employer, having a degree of experience of earlier versions of SMS and some previous SCCM knowledge I didn't expect the procedure to involve to much time. I read a number of guides concerning it…
I was asked if I could set up a fax machine so that incoming faxes were delivered to people's Exchange inboxes and so that they could send faxes from their desktops without needing to print the document first.  I knew it was possible but I had no id…
This tutorial will walk an individual through locating and launching the BEUtility application and how to execute it on the appropriate database. Log onto the server running the Backup Exec database. In a larger environment, this would generally be …
To efficiently enable the rotation of USB drives for backups, storage pools need to be created. This way no matter which USB drive is installed, the backups will successfully write without any administrative intervention. Multiple USB devices need t…

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now