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 Tutorial - System Files - SFC Command

Comment
 
Old 05-30-2007  
Brink
Administrator


Join Date: Apr 2007
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 04-20-2009  
Brink
Administrator


Join Date: Apr 2007
Vista x64 Ultimate SP2, Windows 7 Ultimate x64
 
 

Re: System Files - SFC Command

Quote  Quote: Originally Posted by icynyx View Post
One last question, I did a chkdsk before sfc and it froze at stage 5 43% for 3 hours, I talked to Dell tech support and they told me to just reboot the laptop. I'm wondering if the corrupted files maybe the reason for chkdsk not being able to finish.

Thanks for the quick response.
It could be. Chkdsk is is for corrupted hard drive sectors, and SFC is for corrupted system files. Unfortunately they cannot always repair the corruption.

My System SpecsSystem Spec
Old 05-09-2009  
dtgVA
Member


Join Date: Feb 2009
Vista Home Premium 64bit
 
 

Re: System Files - SFC Command

Brink...

You are indeed amazing! This website should be the first resource for anyone with a Vista problem.

I'm still having problems periodically with the error message "....Desktop refers to a location that is not available." Rebooting always fixes the problem. Someone suggested that I try sfc. Not being familiar with that, I came to this forum and found all the info I needed.

So I ran sfc /verifyonly and it found some violations. Following the suggestions in your tutorial, I then ran sfc /scannow. It found corrupt files but was unable to fix them. Viewing the cbs.log file, it appears that sfc was able to repair all corrupt files except one. After weeding through all of the log, I found this entry:

2009-05-09 15:37:36, Info CSI 0000014b [SR] Could not reproject corrupted file [ml:520{260},l:72{36}]"\??\C:\Program Files\Windows Sidebar"\[l:24{12}]"settings.ini"; source file in store is also corrupted

Two questions, 1) Is the source file referenced here Windows Sidebar? 2) If I simply delete the settings.ini file would Vista just autmatically recreate one? I used the Windows Sidebar for about a month when I got my laptop in December 08 but realized it was a resource hog and stop using it.

Vista Home Premium SP1 came preinstalled on my laptop so I don't have a Vista CD/DVD.

Some guidance on this issue would be greatly appreciated.

dtgVA
My System SpecsSystem Spec
Old 05-09-2009  
Brink
Administrator


Join Date: Apr 2007
Vista x64 Ultimate SP2, Windows 7 Ultimate x64
 
 

Re: System Files - SFC Command

dtgVA,

Here's a copy of my settings.ini file below in a ZIP file that you can download and use to replace your corrupted on in C:\Programs Files\Windows Sidebar.
  • Take Ownership of your C:\Programs Files\Windows Sidebar\settings.ini file.
  • Rename your settings.ini file to settings.ini.bak so it will be a backup of the original.
  • Copy and Paste my settings.ini file to C:\Programs Files\Windows Sidebar, and approve.
  • Double check to make sure that the new settings.ini file has Trusted Installer as the owner.
Hope this helps,
Shawn
Attached Files
File Type: zip settings.zip (424 Bytes, 17 views)
My System SpecsSystem Spec
Old 05-10-2009  
dtgVA
Member


Join Date: Feb 2009
Vista Home Premium 64bit
 
 

Re: System Files - SFC Command

Quote  Quote: Originally Posted by Brink View Post
dtgVA,

Here's a copy of my settings.ini file below in a ZIP file that you can download and use to replace your corrupted on in C:\Programs Files\Windows Sidebar.
  • Take Ownership of your C:\Programs Files\Windows Sidebar\settings.ini file.
  • Rename your settings.ini file to settings.ini.bak so it will be a backup of the original.
  • Copy and Paste my settings.ini file to C:\Programs Files\Windows Sidebar, and approve.
  • Double check to make sure that the new settings.ini file has Trusted Installer as the owner.
Hope this helps,
Shawn
Brink...

Thanks so much for your suggestions. I noticed something when I tried to Take Ownership of the settings.ini. The TAKEOWN command kept saying ERROR invalid argument/option - 'Files\Windows. I'm entering takeown /f c:\Program Files\Windows Sidebar\settings.ini . I know the directory exists because I can use cd c:\Program Files\Windows Sidebar and do a directory listing and see the settings.ini file. So I had take ownership of the settings.ini file using Windows Explorer and that worked. I copied the settings.ini file you provided and then ran sfc and it still reported the settings.ini file was corrupt as well as its source.

Later today I got the following message: Your user profile was not loaded correctly! You have been logged on with a temporay profile. I then rebooted and everything was okay. I realized then that my issues with the desktop not being found and this recent one must be due to a corrupt user profile. Does that assumption seem right to you?

I've read your tutorial about user profile not loading correctly and how to delete a user profile but I need some clarification before attempting this.

I only have one user account with me as Administrator. When I delete that account, you mentioned be sure to select Keep Files to save a folder on the desktop. When I reboot, will Vista ask me to create another user account? I noticed there is a hidden folder under my current user profile called AppData. Should that folder also be copied to the new user account name?

What will happen to access to all my applications? (i.e. Outlook and iTunes) I frequently backup my Outlook pst file as well as my iTunes Library. Is access to these programs depended on user accounts?

Thanks for the hand-holding,
dtgVA
My System SpecsSystem Spec
Old 05-11-2009  
Brink
Administrator


Join Date: Apr 2007
Vista x64 Ultimate SP2, Windows 7 Ultimate x64
 
 

Re: System Files - SFC Command

dtgVA,

I would say that you do have some form of corruption with your user profile. See if you may be able to repair it first using this tutorial instead.

The User Profile Service failed the logon. User profile cannot be loaded.
My System SpecsSystem Spec
Old 05-11-2009  
dtgVA
Member


Join Date: Feb 2009
Vista Home Premium 64bit
 
 

Re: System Files - SFC Command

Quote  Quote: Originally Posted by Brink View Post
dtgVA,

I would say that you do have some form of corruption with your user profile. See if you may be able to repair it first using this tutorial instead.

The User Profile Service failed the logon. User profile cannot be loaded.
Brink...

Okay, in regedit under the ProfileList entry I have two user accounts listed 1) My name and 2) Administrator. Neither have .bak at the end of the SID Key aka long number. I'm interested in fixing the user account with my name. So no .bak entry, what does that indicate?

dtgVA
My System SpecsSystem Spec
Old 05-11-2009  
Brink
Administrator


Join Date: Apr 2007
Vista x64 Ultimate SP2, Windows 7 Ultimate x64
 
 

Re: System Files - SFC Command

It means that you'll have to use this tutorial below instead. Be sure to create backups of anything that you do not want to lose first to be safe though.

User Profile Error - Logged on with a Temporary Profile
My System SpecsSystem Spec
Old 05-11-2009  
dtgVA
Member


Join Date: Feb 2009
Vista Home Premium 64bit
 
 

Re: System Files - SFC Command

Quote  Quote: Originally Posted by Brink View Post
It means that you'll have to use this tutorial below instead. Be sure to create backups of anything that you do not want to lose first to be safe though.

User Profile Error - Logged on with a Temporary Profile

According to tihis tutorial, it too says the SID key should end in .bak. If my user profile SID entry in regedit does not have .bak, when I delete it, should it still recreate it when I reboot or is it permanently gone and I will create a completely new user profile/account?

I've saved the folders associated with the user account I want to delete to a DVD. When the account is recreated or a new one created, do I simply copy the old account files to the new one?

Much thanks,
dtgVA
My System SpecsSystem Spec
Old 05-11-2009  
Brink
Administrator


Join Date: Apr 2007
Vista x64 Ultimate SP2, Windows 7 Ultimate x64
 
 

Re: System Files - SFC Command

It is suppose to recreate it. If not, then you can follow the NOTE under step 10 to create a new account and restore your user settings by copying the backed up C:\Users\(user-name) folders into the corresponding new accounts C:\Users\(user-name) folders.
My System SpecsSystem Spec
Old 05-11-2009  
dtgVA
Member


Join Date: Feb 2009
Vista Home Premium 64bit
 
 

Re: System Files - SFC Command

Nothing fails but a try! I'm a little nervous about this but I have your instructions and have backuped my pertinent data so I think I'm prepared. I do think this is the right decision because the 'desktop is unavailable' and 'user login did not load properly' messages are starting to appear more frequently. It's weird that simply rebooting seems to bring everything back ok. It's as if the system temporarily loses the info then finds it. Anyway, wish me the best! I'll report back later tonight on how things went.

dtgVA
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