Our new site design will soon be launched. This may mean that pages may be moved to a new area of the site or have its name changed. We apologize for any inconvenience while we update and convert our content over to the new format of our site.




Disable Windows File Protection.

"Helps to keep the Operating System stable."

Both Windows 2000 and Windows XP include a feature called Windows File Protection that helps keep the Operating System stable by preventing important system files from being overwritten.

It is recommended that you do not disable this feature unless you have a specific need to do so.

Caution:
Incorrectly editing the registry may render your system inoperable - requiring the re-installation of Windows.

This tip should only be attempted by advanced users.

Disabling Windows File Protection is a two-step process for installations of Windows 2000 with service pack 1 or greater installed or Windows XP.

Step 1:

The first step to disable Windows File Protection is to use a hex editor to edit a Windows system file, therefore it is important to make a backup of the original file before editing it.

For Windows 2000:

  1. Open the sfc.dll file, located in c:\winnt\system32, in the hex editor.

  2. At physical offset 00006211 (6211h) change the two sequential values of 8B and C6 to read 90 and 90.

    Important: If the values at offset 00006211 (6211h) do not match those given above you should not make any changes or continue with this tip.

  3. Save the edited file and exit the hex editor.

  4. A second copy of sfc.dll is also maintained in the system32\dllcache folder. A copy of the edited sfc.dll file must be copied to this location to make the change complete.

    To do this, at a command prompt type the following:

    copy c:\winnt\system32\sfc.dll c:\winnt\system32\dllcache\sfc.dll /y

  5. Reboot the system and then apply step 2 below.

For Windows XP:

  1. Open the sfc_os.dll file, located in c:\windows\system32, in the hex editor.

  2. If no service pack is installed:
    At physical offset 0000E2B8 (0E2B8h) change the two sequential values of 8B and C6 to read 90 and 90.

    If service pack one is installed:
    At physical offset 0000E3BB (0E3BBh) change the two sequential values of 8B and C6 to read 90 and 90.

    Important: If the values at the given offset do not match those given above you should not make any changes or continue with this tip.

  3. Save the edited file and exit the hex editor.

  4. A second copy of sfc_os.dll is also maintained in the system32\dllcache folder. A copy of the edited sfc_os.dll file must be copied to this location to make the change complete.

    To do this, at a command prompt type the following:

    copy c:\windows\system32\sfc_os.dll c:\windows\system32\dllcache\sfc_os.dll /y

  5. Reboot the system and then apply step 2 below.

Step 2:

After step one has been completed, it is then necessary to edit the value of SFCDisable in the Windows Registry to complete the process of disabling Windows File Protection.

Hive HKEY_LOCAL_MACHINE
SubKeySoftware \ Microsoft \ Windows NT \ CurrentVersion \ Winlogon
NameSFCDisable
TypeREG_DWORD
Valueffffff9d

Reboot the system to complete the process.

Other Registry Settings:

The value of SFCDisable can also be set to any of the following settings:

0 - To enable (default value)
1 - Disabled (prompt at boot to re-enable)
2 - Disabled at next boot only (no prompt to re-enable)
4 - Enabled (with popups disabled)

Restoring Windows File Protection:

To re-enable the Windows File protection, copy the un-edited backup copy of sfc.dll (sfc_os.dll for Windows XP) file back into the c:\winnt\system32 and system32\dllcache folders and set SFCDisable to 0.

Windows File Protection will be enabled the next time the system is rebooted.


Disclaimer:
This document is provided "as is" without any warranty of any kind, either expressed or implied. In no event will Sabresoft Systems be liable to you for any damages, including any loss of profit or savings, arising out of the use or inability to use the information contained in this document. Sabresoft Systems makes no representations or warranties with respect to the contents hereof and specifically disclaims any implied warranties of merchantability or fitness for any particular purpose.

Applies To:

Windows 2000
Windows XP

More Registry Tweaks:

Browse our growing collection of Registry Tweaks for:

Windows NT, 2000 and Windows XP

Windows 98 and Windows Me

Make a backup of the Registry:

Before you make any changes to the Registry make sure to back up the Windows Registry.

Using RegEdit to edit the Registry:

Learn everything you need to know about how to use RegEdit to edit the Windows Registry.