VISTA
Click Start and type in the search box: CMD and right click on Command Prompt and select Run as Administrator.
In the black window type: sfc /scannow and press enter.
It will finish itself within 5-30 minutes, or longer. When it finishes, it will disappear.
Reboot. Run the command one more time to make sure the repair is complete.
If you would like to create a report for System File Checker, create a folder in My Documents called SFCscanresults, please copy the following in to Notepad:
Click File > Save as
Choose Save as type: All Files
Save the file, to the folder you created, as SFCscan.bat
Exit Notepad and double click on the file to run it. Choose Yes/Confirm any prompts.
Please reboot for changes to take effect. Then, run this batch file again.
If SFC Cannot Finish or Repair a File:
NOTE: This is for when after you run the SFC scan below, it cannot finish or repair a file. There
is no guarantee that SFC can repair the system files if they are
corrupted or damaged to much. If SFC still cannot repair them after
this, then you might try running Check Disk (chkdsk), System Restore, a Repair Installation, or a clean reinstall of Vista.
1. How to Read the CBS.LOG -
NOTE: When SFC runs, it logs it's actions to the C:\WINDOWS\LOGS\CBS\CBS.LOG. You can find the specific SFC entries by searching for the [SR] tags in the log.
NOTE: If
SFC cannot fix a file, it will be listed in the CBS.LOG above. Read the
CBS.LOG to find out what file it is so you can replace it with a good
copy.A) For how, see: Microsoft Help and Support: KB929833 and Access Vista Install DVD Files (Source: Vistax64.com)
XP
Click Start > Run and type in the box: CMD and click OK.
In the black window type: sfc /scannow and press enter.
It will finish itself within 5-30 minutes, or longer. When it finishes, it will disappear.
Reboot. Run the command one more time to make sure the repair is complete.
If you don't have Windows CD....
Go Start and then Run
type in regedit and click OK
Navigate to the following key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Setup
Find SourcePath Registry Value on the right.
It probably has an entry pointing to your CD-ROM drive, usually D and that is why it is asking for the XP CD.
Change that to: C:
Now, double click the SourcePath setting and a new box will pop up.
Change the drive letter from your CD drive to your root drive, usually C:
Close Registry Editor.
Reboot, and try the command again.
Click Start and type in the search box: CMD and right click on Command Prompt and select Run as Administrator.
In the black window type: sfc /scannow and press enter.
It will finish itself within 5-30 minutes, or longer. When it finishes, it will disappear.
Reboot. Run the command one more time to make sure the repair is complete.
If you would like to create a report for System File Checker, create a folder in My Documents called SFCscanresults, please copy the following in to Notepad:
- Code:
@echo off
sfc /scannow > SFCresults.txt
Notepad SFCresults.txt
exit
Click File > Save as
Choose Save as type: All Files
Save the file, to the folder you created, as SFCscan.bat
Exit Notepad and double click on the file to run it. Choose Yes/Confirm any prompts.
Please reboot for changes to take effect. Then, run this batch file again.
If SFC Cannot Finish or Repair a File:
NOTE: This is for when after you run the SFC scan below, it cannot finish or repair a file. There
is no guarantee that SFC can repair the system files if they are
corrupted or damaged to much. If SFC still cannot repair them after
this, then you might try running Check Disk (chkdsk), System Restore, a Repair Installation, or a clean reinstall of Vista.
1. How to Read the CBS.LOG -
NOTE: When SFC runs, it logs it's actions to the C:\WINDOWS\LOGS\CBS\CBS.LOG. You can find the specific SFC entries by searching for the [SR] tags in the log.
2. Replace the Files that SFC Cannot Fix -
A) For how,to see only the SFC scan details in the CBS.LOG:
- Open a elevated command prompt.
- In the elevated command prompt, type findstr /c:"[SR]" %windir%\logs\cbs\cbs.log >%userprofile%\Desktop\sfcdetails.txt and press Enter.
- Close the elevated command prompt.
- Click on the sfcdetails.txt file that was just placed on your desktop to see the SFC scan details (ones with the [SR] tags) in the CBS.LOG.
- You can safely delete the sfcdetails.txt file afterwards if you like.
NOTE: If
SFC cannot fix a file, it will be listed in the CBS.LOG above. Read the
CBS.LOG to find out what file it is so you can replace it with a good
copy.A) For how, see: Microsoft Help and Support: KB929833 and Access Vista Install DVD Files (Source: Vistax64.com)
XP
Click Start > Run and type in the box: CMD and click OK.
In the black window type: sfc /scannow and press enter.
It will finish itself within 5-30 minutes, or longer. When it finishes, it will disappear.
Reboot. Run the command one more time to make sure the repair is complete.
If you don't have Windows CD....
Go Start and then Run
type in regedit and click OK
Navigate to the following key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Setup
Find SourcePath Registry Value on the right.
It probably has an entry pointing to your CD-ROM drive, usually D and that is why it is asking for the XP CD.
Change that to: C:
Now, double click the SourcePath setting and a new box will pop up.
Change the drive letter from your CD drive to your root drive, usually C:
Close Registry Editor.
Reboot, and try the command again.









No Comment.