Solved

How to repair corrupt system files on Windows Server 2008?

Posted on 2009-07-13
9
9,314 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
Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

 

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

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

I was prompted to write this article after the recent World-Wide Ransomware outbreak. For years now, System Administrators around the world have used the excuse of "Waiting a Bit" before applying Security Patch Updates. This type of reasoning to me …
This article provides a convenient collection of links to Microsoft provided Security Patches for operating systems that have reached their End of Life support cycle. Included operating systems covered by this article are Windows XP,  Windows Server…
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…
This tutorial will walk an individual through setting the global and backup job media overwrite and protection periods in Backup Exec 2012. Log onto the Backup Exec Central Administration Server. Examine the services. If all or most of them are stop…

695 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