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

Go Back   Vista Forums > Vista Forums > Tutorials

Vista - System Files - SFC Command

Comment
 
Old 05-30-2007  
Brink


Vista x64 Ultimate SP2, Windows 7 Ultimate x64
 
 

System Files - SFC Command

How to Repair and Verify the Integrity of Vista System Files with System File Checker
...

My System SpecsSystem Spec
Old 03-26-2008  
crazydave3rd


Vista Ultimate 32Bit SP1
 
 

Re: System Files - SFC Command

Thanks for the advice.

I have no idea what may have caused the problem or how far it may go back. I think I'm resolved to reinstalling vista from scratch. I've been having numerous other system problems including critical services failing to start, hence the desire to use sfc but they may be beyond simple repair.

Cheers David

My System SpecsSystem Spec
Old 04-29-2008  
barnesa4


Vista Home Preminum 32bit
 
 

Question Re: System Files - SFC Command

Ok i'm stuck. I have had vista for almost a year and throughout the year it has slowly been eating itself away. I bought windows xp and am prepared to downgrade but i decided to give vista one more try.

In short i'm trying to get my check disk to run. I've tried running it in the command prompt, safe mode, on start up, warm boot, cold boot, hard boot, NOTHING.


I following the steps on the forum with the SFC scan, i get this
_______________________________________________________________________

C:\Windows\system32>sfc/scannow

Beginning system scan. This process will take some time.

Beginning verification phase of system scan.
Verification 100% complete.Windows Resource Protection found corrupt files but w
as unable to fix some of them.
Details are included in the CBS.Log windir\Logs\CBS\CBS.log


C:\Windows\system32>findstr/c:"[SR]" %windir%\logs\cbs\cbs.log>sfcdetails.txt

______________________________________________________________________

what does it mean? I tried to access the CBS log and when i click on the text file it says access is denied? didn't pull up anything in the command prompt either as you can see.

so my question is what do I do?
My System SpecsSystem Spec
Old 04-29-2008  
Brink


Vista x64 Ultimate SP2, Windows 7 Ultimate x64
 
 

Re: System Files - SFC Command

Hi Barnesa4,

To read the CBS log use the method at the top of this tutorial to be able to without getting the access denied.

With the number of problems you have, I would recommend that you backup what you do not want to lose and do a clean install.

Shawn
My System SpecsSystem Spec
Old 06-21-2008  
marrypoppins


Microsoft® Windows Vista™ Home Premium
 
 

Re: System Files - SFC Command

Okay so I have been prompted multiple times by vista because of LoginUI.exe file is corrupt to run chkdsk. everytime I've tried running chkdsk /r it wasnt working and wouldnt on start up. Also the next time I started my computer it started prompting it for everything say 03E0M.exe (or something like that) is corrupt, Yahoo.exe is corrupt, and so on. Then I found this forum and I felt a sense of hope. So I started running sfc /scannow it got 75% of the way done and then said: "Windows Resource Protection could not preform the requested operation."

So I decided to then run sfc /verifyonly and that said "Windows Resource Protection found integrity violations details are included in CBS.log"

So, what should I try doing next a system restore, repair installation, clean installation? I just dont want to go through all of the work of one to find out it doesnt work. Does this chkdsk problem seem to be a purely vista problem? Thanks for all your hard work on this great website, its the one place thats given me so much help.

Last edited by marrypoppins; 06-21-2008 at 12:34 PM..
My System SpecsSystem Spec
Old 06-21-2008  
Brink


Vista x64 Ultimate SP2, Windows 7 Ultimate x64
 
 

Re: System Files - SFC Command

Hello MarryPoppins,

I would recomend doing a System Restore using a restore point dated before this problem first to see if it can fix the problem for you.

Hope this helps,
Shawn
My System SpecsSystem Spec
Old 06-22-2008  
marrypoppins


Microsoft® Windows Vista™ Home Premium
 
 

Re: System Files - SFC Command

Idk what happened but like the third time I shut my computer off manually, and it coming back on a screen popped up requesting to fix problems, it was like startup repair or something. While anyways it worked I believe Im gonna see if I can run a chkdsk today.

chkdsk didnt work but the sfc /scannow did. now I need to look at the cbs.log

how do you know the path and file name of the things that are placed in the cbs.log?

Last edited by marrypoppins; 06-22-2008 at 08:35 AM.. Reason: add details
My System SpecsSystem Spec
Old 06-22-2008  
Brink


Vista x64 Ultimate SP2, Windows 7 Ultimate x64
 
 

Re: System Files - SFC Command

MarryPoppins,

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 SFC specific entries by searching for the [SR] tags in the log.
A) For how, see: Microsoft Help and Support: KB928228, then type sfcdetails.txt in the same elevated command prompt and press Enter to be able to read the log file.

Hope this helps,
Shawn
My System SpecsSystem Spec
Old 06-22-2008  
marrypoppins


Microsoft® Windows Vista™ Home Premium
 
 

Re: System Files - SFC Command

I can access my CBS.log that doesnt mean I understand it. I was wondering from the CBS.log how you know the path of the file like C:, E:, and so on. and how you know file name, because now inorder to fix the problems I have to copy a good copy. So I just didnt get how they got the example from what they show

"2007-01-12 12:10:42, Info CSI 00000008 [SR] Cannot
repair member file [l:34{17}]"Accessibility.dll" of Accessibility, Version =
6.0.6000.16386, pA = PROCESSOR_ARCHITECTURE_MSIL (8), Culture neutral,
VersionScope neutral, PublicKeyToken = {l:8 b:b03f5f7f11d50a3a}, Type
neutral, TypeName neutral, PublicKey neutral in the store, file is missing.

1.
At an elevated command prompt, type the following command, and then press ENTER:
takeown /f Path_And_File_Name
For example, type takeown /f E:\windows\system32\jscript.dll."
I dont get how they know its E:\ and everything else. If it helps heres the url to what Im looking at.

Some Windows Vista functions may not work, or Windows Vista may stop responding

Sorry if Im not clear at what Im trying to do, this is my first time working with vista, and before that I never did anything with computers.
My System SpecsSystem Spec
Old 06-22-2008  
Brink


Vista x64 Ultimate SP2, Windows 7 Ultimate x64
 
 

Re: System Files - SFC Command

Ok, I see what you mean now. That was not a very good example they used to go with a [SR] tagged error. It would just be the path inside your Vista, which is usually C: instead. The [SR] tagged error will tell you which file was bad. However, this is a very complicated task that usually may only work if you extract the replacement files from the Vista installation DVD instead. This of course is even more complicated to do.

Over all it doesn't not have a high chance of success. Instead, I would recommend doing a Repair (upgrade) install. It's easier to do and usually fixes the problem. This tutorial will show you how to.

Repair Install For Vista

Hope this helps,
Shawn
My System SpecsSystem Spec
Old 07-29-2008  
ndpadgett


Vista Ultimate 64bit
 
 

Unhappy Re: System Files - SFC Command

After typing in sfc /scannow I get the following:

Beginning system scan. This process will take some time.
Windows Resource Protection could not perform the requested operation.

Any ideas how to get around this?

Regards

Neil
My System SpecsSystem Spec
Comment

Tutorial Tools


Similar Threads
Tutorial Category
command for system restore General Discussion
Command Prompt System error 5 General Discussion
What is the command line command for unzipping files? Vista General
execute command on remote system PowerShell
Wrap command shell in System.Diagnostics.Process PowerShell


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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46