How to run the sfc /scannow command if Windows 8.1 does not boot

The sfc /scannow command is a well known way to do an integrity check of all Windows system files. It can be helpful in many scenarios and fix various issues with Windows. However, if for some reason you are unable to boot into Windows, then you may not know how to run the System File Checker. Thankfully, sfc supports offline scanning of a Windows installation even if does not start properly. All you need is a bootable media with Windows 8.1 setup, i.e. Windows 8.1 installation DVD or a bootable USB stick.

Here is how to perform the offline scan with the sfc command.

  1. Insert your bootable media and boot your PC from USB. (You may need to press some keys or change BIOS options to boot from USB.)
  2. When the "Windows Setup" screen appears, press Shift + F10 keys together.
    windows setup
    This will open the command prompt.
    Shift+F10
  3. Type notepad and hit Enter. Do not close the command prompt window.
    Notepad
    When Notepad opens, open the File menu -> Open... item. Click "This PC" in the left pane of the Open dialog to see your PC drives. Note the proper drive letter of the partition where you have the damaged, unbootable Windows 8.1. In the picture below, it is disk D:.
    This PC drives
  4. Also, note the proper letter of the hidden "System Reserved" partition. In my case it is C:
  5. Now type the following in the command prompt:
    sfc /scannow /offbootdir=C:\ /offwindir=D:\Windows

    Note that offbootdir contains the letter of your "System Reserved" partition and offwindir is the volume on which your broken, unbootable Windows 8.1 is located.
    Hit Enter to execute the command.

That's all. Now allow the SFC tool to perform the offline check of system files and fix any integrity issues. It will automatically fix any issues that it finds.

4 thoughts on “How to run the sfc /scannow command if Windows 8.1 does not boot

  1. Phil

    thanks so much!

    Reply
  2. Phil

    does it work on windows 7? please reply thanx!

    Reply
    1. Sergey Tkachenko Post author

      it will work in win7 too

      Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.