This article provides information on running the System File Checker (sfc.exe) in the Windows Recovery Environment in Windows Server 2008 and above.
When attempting to run the System File Checker (sfc.exe) within the Windows Recovery Environment (WinRE), you may receive the following error:
Windows Resource Protection could not start the repair service.
The error is shown in the screenshot below (Figure 1 (English-only)):
![SLN71990_en_US__11373564438000.Windows Resource Protection error](https://supportkb.dell.com/img/ka02R0000008C5gQAE/ka02R0000008C5gQAE_en_US_1.jpeg)
Figure 1: Windows Resource Protection Error
When running sfc /scannow in WinRE, two switches need to be added to the command in order to run it in offline mode:
- /offbootdir=<disk> indicates the boot drive letter.
- /offwindir=<folder> indicates the folder where Windows is installed.
The following is an example of the command with these switches added:
- sfc /scannow /offbootdir=D:\ /offwindir=D:\Windows
Important: The drive letter required in both switches is the drive letter as it appears in WinRE. This is typically a different letter from the one assigned to the same partition when Windows is running, because WinRE enumerates partitions differently.