System File Checker tool (SFC.exe)
1. Cet a cmd window as administrator by Click Start > type cmd >, ctrl / shift / enter
Or click All Programs, click Accessories, right-click Command Prompt, and then click Run as administrator. ***
2. Type sfc /scannow and press ENTER:
The sfc /scannow command scans all system files and will recover the corrupted ones.
3. Please restart the computer and recheck the original issue.
SFC logs its results to the C:\WINDOWS\LOGS\CBS\CBS.LOG. You can find the specific SFC entries by searching for the [SR] tags in the log.
Thiis is useful way to run sfc /scannow fixes, sfc /verify only lists all problems
Errors from running sfc /scannow or sfc /verifyonly (see
http://support.microsoft.com/kb/929833 )
To determine which files could not be repaired by the System File Checker tool. Follow these steps:
1 Open an elevated command prompt ( cmd with ctrl/shift/enter )
2 At the command prompt, type the following command, and then press ENTER: (r-click in cmd, Paste
)
findstr /c:"[SR]" C:\Windows\Logs\CBS\CBS.log > C:\Users\xxxxxx\Desktop\sfcdetails.txt
This puts Sfcdetails.txt on the desktop. The log has old entries so delete all the old items - just look at those at the relevant time.
3 Fixing the errors which it finds
see
http://support.microsoft.com/kb/928228
You can get replacement files by downloading a W7 DVD - see
http://www.heidoc.net/joomla/technology ... load-links
see
http://support.microsoft.com/?scid=kb%3 ... &x=13&y=11
=====
The log contains details from every time that the System File Checker tool has been run on the computer. The file includes information about files that were not repaired by the System File Checker tool. Verify the date and time entries to determine the problem files that were found the last time that you ran the System File Checker tool.
The Sfcdetails.txt file uses the following format:
Date/Time SFC detail
The following sample log file contains an entry for a file that could not be repaired:
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
=====================================================================================
The problem was caused by the files in C:\windows\winsxs\...AM<D64 ...\segoe.ttf having the wrong permissions - only the user had any permissions! I fixed it in two ways
1 MANUALLY FIX. r-click the file > Properties > Security > Add > type system, click FULL CONTROL; and repeat for administrator.
2 BATCH FILE. Run the following command from a CMD window
cacls c:\windows\winsxs /t /c /e /g Administrators:f
where CACLS allows you to modify ACL rights on files and folders for users and groups on the local computer.
I needed this for an installed program would not run under a users account unless i manually change the user permissions of the folder.
The following can be added into a script to automate the procedure when installing the program!
1. Usage
cacls filename [/t] [/e] [/c] [/g user|group:perm]
2. Parameters
filename Displays ACLs of specified directory, file or files.
/t Changes ACLs of specified files in the current directory and all subdirectories.
/e Edit ACL instead of replacing it.
/c Continue changing ACLs, ignoring errors.
/g user|group:perm Grant specified user or group access permissions. perm can be:
r Read
c Change (write)
f Full control
/r user Revoke specified user's or group's access permissions.
/p user|group:perm Replace specified user's or group's access permissions. perm can be:
n None
r Read
c Change (write)
f Full control
/d user|group Deny specified user access.
3. User|Group
can be a user or an AD Group!
4. Example:
cacls c:\ /t /e /g Administrators:f
Gives "Administrators" group FULL access to C: Drive and all files / folders.