Solved

How to repair corrupt system files on Windows Server 2008?

Posted on 2009-07-13
9
8,916 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

 

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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Join with a SQL Server STUFF 5 50
Using MS Hello on a Domain Joined Surface Book 4 50
File Screening 1 34
Restore a DC asap 11 44
Normally after a failure of Domain Controller, when promoting new DC the DC is renamed, we will discuss the options in Dcpromo to re-create the DC with the same name. Scenario: You are a small IT shop with two Domain Controllers (Domain Contr…
If you migrate a Terminal Server licenses server inside the 2008 server family, you can takte advantage of the build-in migration tool. If you like to migrate an older 2003 Server (and the installed client CALs) to a 2008 R2 server for example, you …
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…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

726 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