Windows 7 Forums


Navigation »Windows 7 Forums > Seven Forums > Tutorials » SFC /SCANNOW Command - System File Checker


Welcome to Windows 7 Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows 7. The Windows 7 forum also covers news and updates and has an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

SFC /SCANNOW Command - System File Checker

Comment
 
LinkBack Tutorial Tools Search this Tutorial Display Modes
<!-- google_ad_section_start -->SFC /SCANNOW Command - System File Checker<!-- google_ad_section_end -->
SFC /SCANNOW Command - System File Checker
How to Repair Windows 7 System Files with System File Checker
Published by Brink
01-09-2009
Default SFC /SCANNOW Command - System File Checker

How to Repair Windows 7 System Files with System File Checker
Information
  The sfc /scannow command (System File Checker) scans the integrity of all protected Windows 7 system files and replaces incorrect corrupted, changed, or damaged versions with the correct versions if possible.
RELATED LINKS:


OPTION ONE:
To Run the SFC /SCANNOW Command
1. Open a elevated command prompt.

2. In the elevated command prompt, type sfc /scannow and press Enter. (See screenshot below)
NOTE: This may take a little bit to finish.
sfc-scannow-command-system-file-checker-command-1.jpg
3. When the scan is complete, hopefully you will see all is ok like the screenshot below.
NOTE: If not, then you can attempt to 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.
sfc-scannow-command-system-file-checker-finished.jpg
4. When done, close the elevated command prompt.



OPTION TWO:
To See the SFC /SCANNOW Scan Results
NOTE
  When SFC runs, it logs it's actions to the C:\WINDOWS\LOGS\CBS\CBS.LOG. This will show you how to see only the specific SFC entries with the [SR] tags in the 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.

2. In the elevated command prompt, type:
findstr /c:"[SR]" %windir%\logs\cbs\cbs.log >%userprofile%\Desktop\sfcdetails.txt and press Enter. (See screenshot below)
NOTE: This will place a sfcdetails.txt file on your desktop with the SFC scan details from the CBS.LOG.
sfc-scannow-command-system-file-checker-command_details.jpg
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. You can safely delete the sfcdetails.txt file afterwards if you like.
That's it,
Shawn

Published by
Brink's Avatar
Administrator

Join Date: Oct 2008
Location: Texas
Posts: 4,453
Brink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond reputeBrink has a reputation beyond repute

Tutorial Tools
Old 01-18-2009  
shadowminx69
Junior Member


Join Date: Jan 2009
Windows 7 Build 7000
 
 

Default

would it be a bad Idea to make a task to run this each night? not sure if it would be a good Idea or not. Hit me back
My System SpecsSystem Spec
Old 01-18-2009  
Romulinx2's Avatar
Romulinx2
Ex Brit & 6502 cpu user



Join Date: Jan 2009
Win7 RC1 x64 on Desktop/WinXP on another desktop/Win7 x86 on laptop
Oklahoma
 
 

Default

Thanks, I forgot about this. I used to use it in early editions of windows. Run it and sorted some errors.
My System SpecsSystem Spec
Old 01-18-2009  
darkassain's Avatar
darkassain
Did someone mention Cake?




Join Date: Nov 2008
Windows 7 7000 x32, 7100 x64/Windows Server 2008 ,R2 beta, SuSe 11.2, Ubuntu 9.10, OSx86
In a ∞ Portal
 
 

Default

Quote: Originally Posted by shadowminx69 View Post
would it be a bad Idea to make a task to run this each night? not sure if it would be a good Idea or not. Hit me back
you shouldnt have any problem with it...
My System SpecsSystem Spec
Old 01-18-2009  
Brink's Avatar
Brink
Administrator



Join Date: Oct 2008
Windows 7 (7264) Ultimate x64
Texas
 
 

Default

Quote: Originally Posted by Romulinx2 View Post
Thanks, I forgot about this. I used to use it in early editions of windows. Run it and sorted some errors.
You're welcome Romulinx2.

Shawn
My System SpecsSystem Spec
Old 02-07-2009  
thunder2008's Avatar
thunder2008
Member


Join Date: Jan 2009
Windows 7 RC 7100
 
 

Default

Very useful information running the sfc atm, thank you for this thread.
My System SpecsSystem Spec
Old 02-07-2009  
Brink's Avatar
Brink
Administrator



Join Date: Oct 2008
Windows 7 (7264) Ultimate x64
Texas
 
 

Default

You're welcome Thunder2008.
My System SpecsSystem Spec
Old 03-01-2009  
anykey's Avatar
anykey
press seven to continue


Join Date: Jan 2009
Dual boot XP Pro and Seven/7127
sarf west London
 
 

Default

Good to see this again.
Thanks for the reminder.

Didn't you used to put some letters/codes as a suffix, something such as /* or /?. This was to fix things.
My System SpecsSystem Spec
Old 03-01-2009  
Brink's Avatar
Brink
Administrator



Join Date: Oct 2008
Windows 7 (7264) Ultimate x64
Texas
 
 

Default

Hello Anykey,

You could type sfc /? in the elevated command prompt for a complete list of sfc commands to use, but sfc /scannow is the best option to scan and repair all protected system files command. No other suffixes that I know of though.

sfc-scannow-command-system-file-checker-sfc_list.jpg
My System SpecsSystem Spec
Old 03-01-2009  
anykey's Avatar
anykey
press seven to continue


Join Date: Jan 2009
Dual boot XP Pro and Seven/7127
sarf west London
 
 

Default

Thanks Brink, perhaps I am thinking of the old chkdsk.
I was always taught to do it something like this:

chkdsk /f /r /v /e
My System SpecsSystem Spec
Comment

Tags
scannow, sfc, system file checker

Tutorial Tools Search this Tutorial
Search this Tutorial:

Advanced Search
Display Modes



Similar Threads
Windows 7 Tutorial Tutorial Starter Category Comments Last Post
Is there a way to file share with XP? djhallucn8 Network & Internet 12 05-18-2009 01:33 PM
Elevated Command Prompt Brink Tutorials 2 01-21-2009 01:16 AM
Command Prompt Brink Tutorials 6 01-12-2009 07:48 PM
Command Prompt at Startup Brink Tutorials 1 11-24-2008 02:46 AM


All times are GMT -6. The time now is 06:40 PM.



Windows 7 Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows 7", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd
Windows 7 Tutorial powered by GARS 2.1.9 ©2005-2006