Windows 8 Forums


Results 1 to 8 of 8
  1. #1
    SFC /SCANNOW Command - Run in Windows 8

    SFC /SCANNOW Command - Run in Windows 8
    How to Run the "SFC /SCANNOW" Command at Boot or in Windows 8
    Published by Brink is offline
    10-12-2011
    Default SFC /SCANNOW Command - Run in Windows 8

    How to Run the "SFC /SCANNOW" Command at Boot or in Windows 8


    information   Information
    This will show you how to run the sfc /scannow command at boot or in Windows 8 to attempt to fix corrupted or modified system files.






    OPTION ONE
    To Run the SFC /SCANNOW Command at Boot



    1. Open a command prompt at boot.


    2. In the command prompt, type diskpart and press Enter, then type list volume and press Enter. (see screenshot below)


    Click image for larger version


    3. Make note of the drive letters for your boot drive (ex: 350MB "System Reserved" partition) and Windows 8 drive, then type Exit and press Enter. (see screenshot above)
    NOTE: If you do not have a "System Reserved" partition, and are not multi-booting with another operating system, then the boot drive and Windows 8 drive may be the same drive letter.



    4. In the command prompt, type the command below and press Enter. (see screenshot below)
    NOTE: You will see a blinking cursor at the prompt until finished. This will take a while to finish running though.



    sfc /scannow /offbootdir=C:\ /offwindir=D:\windows



    Note   Note
    You will need to substitute the drive letter of the partition/volume where your system boot files are stored in the offbootdir=C: part of the command above instead.


    You will need to substitute the drive letter of your Windows 8 partition/volume in the offwindir=D: part of the command above instead.




    Click image for larger version



    3.
    When the scan is complete, hopefully you will see an all is ok message like below.


    Click image for larger version


    4. Close the command prompt, and restart the computer to start Windows 8.


    Note   Note
    If SFC could not fix something, then run the command again to see if it may be able to the next time. Sometimes it may take running the sfc /scannow command 3 or more times to completely fix everything that it's able to.

    If not, then you could do a refresh of Windows 8, or run a System Restore using a restore point dated before the bad file occured to fix it. You may need to repeat doing a System Restore until you find a older restore point that may work.

    If still not, then you can use the steps in the TIP box in the OPTION THREE section below to manually replace the files that SFC could not fix.










    OPTION TWO
    To Run the SFC /SCANNOW Command in Windows 8



    1. Open a elevated command prompt in Windows 8.


    2. In the elevated command prompt, type sfc /scannow and press Enter. (see screenshot below)
    NOTE: This may take a while to finish running.


    Click image for larger version


    3. When the scan is complete, hopefully you will see an all is ok message unlike the screenshot below.
    NOTE: Luckily SFC was able to repair my corrupted system files automatically.


    Click image for larger version


    Note   Note
    If SFC could not fix something, then run the command again to see if it may be able to the next time. Sometimes it may take running the sfc /scannow command 3 or more times to completely fix everything that it's able to.

    If not, then you could do a refresh of Windows 8, or run a System Restore using a restore point dated before the bad file occured to fix it. You may need to repeat doing a System Restore until you find a older restore point that may work.

    If still not, then you can use the steps in the TIP box in the OPTION THREE section below to manually replace the files that SFC could not fix.












    OPTION THREE
    How to See and Read Only the "SFC" Scan Results from the CBS.LOG

    NOTE: When SFC runs, it logs it's actions into the C:\Windows\Logs\CBS\CBS.log. The steps in this option will show you how to see only the specific SFC entries with the [SR] tags in this CBS.log. This can be helpful to show you what files SFC could not fix automatically if you wanted to try and manually replace them.


    1. Open a elevated command prompt in Windows 8.


    2. In the elevated command prompt, copy and paste the command below and press Enter.
    NOTE: This will place a sfcdetails.txt file on your desktop with only the SFC scan result details from the CBS.LOG in it.
    Code:
    findstr /c:"[SR]" %windir%\Logs\CBS\CBS.log >%userprofile%\Desktop\sfcdetails.txt
    3. Close the elevated command prompt.


    4. Open the sfcdetails.txt file on your desktop to see the SFC scan details in the CBS.LOG.


    5. When finished, you can safely delete the sfcdetails.txt file afterwards if you like.
    Tip   Tip
    If you need to replace a corrupted system file that SFC cannot fix, then this will show you how to by extracting a new copy directly from your Windows 8 installation DVD or USB thumb drive, or ISO file if in a virtual machine.

    Extract Files from Windows 7 Installation DVD




    That's it,
    Shawn




    Published by


    Brink's Avatar
    Administrator

    Join Date: Jul 2009
    Posts: 1,685


    Tutorial Tools

  2. #1
    JaidynM's Avatar

    BSOD Kernel Dump Analyst


    Join Date : Jul 2011
    Somewhere Over The Rainbow
    Posts : 4,559
    Windows 7 Ultimate x64/Windows 8 Consumer Preview x64/Ubuntu 11.04
    Australia au victoria


    Another great tutorial, Shawn.
      My System SpecsSystem Spec

  3. #2
    Brink's Avatar

    Administrator


    Join Date : Jul 2009
    Posts : 1,685
    64-bit Windows 7 Ultimate & Windows 8 Consumer Preview
    USA us texas


    Thank you Jaidyn.
      My System SpecsSystem Spec

  4. #3



    Senior Member

    Join Date : Dec 2011
    Posts : 512
    Windows 7/ 8 CP - starlite linux (debian)


    Thanks Shawn! I saved these tutorials for use in the future, really nice job.
      My System SpecsSystem Spec

  5. #4
    Kevin Ismail's Avatar

    Asli Wong Jowo

    Join Date : Sep 2011
    Solo, Indonesia
    Posts : 1,201
    WCP 64-bit
    Indonesia


    Quote Originally Posted by Mike Lonewolf View Post
    Thanks Shawn! I saved these tutorials for use in the future, really nice job.
    Me too. Thanks Shawn.
      My System SpecsSystem Spec

  6. #5
    Brink's Avatar

    Administrator


    Join Date : Jul 2009
    Posts : 1,685
    64-bit Windows 7 Ultimate & Windows 8 Consumer Preview
    USA us texas


    You're most welcome Mike and Kevin. Thank you.
      My System SpecsSystem Spec

  7. #6
    sunyeon's Avatar

    New Member

    Join Date : Mar 2012
    sherlock
    Posts : 3
    Windows 8 consumer preview


    great tutorials ^^ but, like my case i already do sfc scan
    and then can open the "PC Settings" but when i want to browse a picture
    to change user picture it won't pop-up anything. can you help me ?
      My System SpecsSystem Spec

  8. #7
    Brink's Avatar

    Administrator


    Join Date : Jul 2009
    Posts : 1,685
    64-bit Windows 7 Ultimate & Windows 8 Consumer Preview
    USA us texas


    Hello Sunueon, and welcome to Eight Forums.

    That needs to be asked in a new thread instead since that isssue is not related to this tutorial.
      My System SpecsSystem Spec