Content deleted Content added
m →History: Fixing links to disambiguation pages, replaced: publisher=IDG → publisher=IDG using AWB |
→History: officially called "Windows Me" not ME by microsoft Tags: Mobile edit Mobile app edit Android app edit App section source |
||
(47 intermediate revisions by 36 users not shown) | |||
Line 1:
{{
{{Infobox software
| logo = ▼
|
|
|
|
|
| released = {{Start date and age|1998|06|25}}
| latest release version =
| latest release date =
| operating system = [[Microsoft Windows]]
| genre = [[System software|System utility]]
| license = [[Proprietary software|Proprietary]] [[commercial software]]
| website = {{URL|https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/sfc}}
}}
'''System File Checker''' ('''SFC'''<ref>
'''System File Checker''' is a utility in [[Microsoft Windows]] that allows users to scan for and restore corruptions in Windows system files. This utility is available on [[Windows 98]], [[Windows 2000]] and all subsequent versions of [[Windows NT]] family of operating systems. In [[Windows Vista]] and [[Windows 7]], System File Checker is integrated with [[Windows Resource Protection]], which protects [[Windows Registry|registry]] keys and folders as well as critical system files. Under Windows Vista, <code>sfc.exe</code> can be used to check specific folder paths, including the Windows folder and the boot folder.▼
{{cite book
| last1 = Boswell
| first1 = William
| chapter = Using the System File Checker, SFC
| title = Inside Windows Server 2003
| url = https://books.google.com/books?id=zayrcM9ZYdAC
| series = Inside Series
| year = 2003
| publication-date = 2003
| page = 860
| isbn = 9780735711587
| access-date = 2017-07-23
| quote = You do not need to hack the Registry to change the WFP settings. A command-line utility comes with Windows Server 2003 to set these values. Called the ''System File Checker'', or SFC, the utility can also rebuild the <code>D11Cache</code> directory files if files are accidentally deleted.
}}
</ref>) is a utility in [[Microsoft Windows]] that allows users to scan for and restore corrupted Windows system files.<ref>{{Cite web|url=https://www.computerhope.com/sfc.htm|title=MS-DOS and Windows command line SFC command}}</ref>
==Overview==
▲
[[Windows File Protection]] (WFP) works by registering for notification of file changes in [[Winlogon]]. If any changes are detected to a protected system file, the modified file is restored from a cached copy located in a compressed folder at <code>%WinDir%\System32\dllcache</code>.
[[Windows
==History==
Due to problems with Windows applications being able to overwrite system files in [[Windows 95]], Microsoft has since implemented a number of security measures to protect system files from malicious attacks, corruptions, or problems such as [[DLL hell|DLL Hell]].
All Windows NT-based operating systems since [[Windows 2000]] introduced real-time file protection, called
|publisher=[[Microsoft]]
|date=
|work=
|title=Description of the Windows File Protection Feature
|url=http://support.microsoft.com/kb/222193/
|access-date=August 28, 2006
|url-status=live
|archive-url=https://web.archive.org/web/20041020015533/http://support.microsoft.com/kb/222193
|archive-date=October 20, 2004}}</ref>
In addition, the System File Checker utility (<code>sfc.exe</code>) was reimplemented as a more robust command-line utility that integrated with WFP. Unlike the Windows 98 SFC utility, the new utility forces a scan of protected system files using Windows File Protection and allows the immediate silent restoration of system files from the ''DLLCache'' folder or installation media.
SFC did not appear on [[Windows
|first=Lincoln
|last=Spector
|work=[[PC World]]
|publisher=[[International Data Group|IDG]]
|date=
|title=Answer Line: Windows 98 Utilities Missing in Windows Me?
|url=http://www.pcworld.com/article/41022/answer_line_windows_98_utilities_missing_in_windows_me.html
|access-date=December 26, 2011
|accessdate=2011-12-26}}</ref> as it was replaced with [[System File Protection]] (SFP).<ref>{{cite web▼
|url-status=dead
|archive-url=https://web.archive.org/web/20110605125202/http://www.pcworld.com/article/41022/answer_line_windows_98_utilities_missing_in_windows_me.html
▲ |
|publisher=[[Microsoft]]
|date=
|title=System File Protection and Windows Me
|url=http://www.microsoft.com/whdc/archive/WinMe_sfp.mspx
|access-date=August 28, 2006
|url-status=dead
</ref> Similar to WFP, SFPn offered real-time protection.▼
|archive-url=https://web.archive.org/web/20040622001805/http://www.microsoft.com/whdc/archive/WinME_sfp.mspx
|archive-date=June 22, 2004}}
==Issues==
The System File Checker component included with versions of Windows 2000 earlier than Service Pack 4
{{cite web
|date=
|publisher=[[Microsoft
|work=
|url=http://support.microsoft.com/kb/814510/
|title=The SFC /SCANNOW Command May Overwrite Hotfix Files
|
|url-status=dead
|archive-url=https://web.archive.org/web/20061116172152/http://support.microsoft.com/kb/814510
This problem has since been rectified in Windows 2000 Service Pack 4.▼
|archive-date=November 16, 2006
==Usage==
In Windows NT-based operating systems, System File Checker can be invoked via [[cmd.exe|Windows Command Prompt]] (with Admin privilege<ref>{{cite web | title=SFC - System File CheckerWindows CMD | website=SS64.com | url=https://ss64.com/nt/sfc.html | access-date=2023-09-12}}</ref>), with the following command:
* {{code|sfc /scannow}} (to repair problems)
* or {{code|sfc /verifyonly}} (no repair)
If it finds a problem, it will attempt to replace the problematic files from the
In Windows Vista and onwards, files are protected using [[access control list]]s (ACLs), and if it finds a problem, it will attempt to replace the problematic files from the Windows Side-by-side Backup (<code>%WinDir%\WinSxS\Backup</code>).<ref name=":0" /> However, the above command has not changed.
▲If it finds a problem, it will attempt to replace the problematic files from the ''DLL Cache'' (<code>%WinDir%\System32\Dllcache\</code>). If the file is not in the DLL Cache or the DLL Cache is corrupted, the user will be prompted to insert the Windows installation media or provide the network installation path. System File Checker determines the Windows installation source path from the registry values <code>SourcePath</code> and <code>ServicePackSourcePath</code>. <ref> [http://support.microsoft.com/kb/885522 System File Checker does not accept a network ___location that contains the installer CD when you use the scannow switch in Windows XP SP2 or in Windows Server 2003] </ref> It may keep prompting for the installation media even if the user supplies it if these values are not correctly set. <ref> [http://support.microsoft.com/kb/900910 You are prompted to insert a Windows XP SP2 CD when you try to run the System File Checker tool on a Windows XP SP2-based computer] </ref>
System File Checker in Windows Vista and later Windows operating systems can scan
In cases where the component store is corrupted, the "System Update Readiness tool" (CheckSUR) can be installed on Windows 7, Windows Vista, Windows Server 2008 R2 or Windows Server 2008, replaced by "[[Deployment Image Service and Management Tool]]" (DISM) for Windows 10, Windows 8.1, Windows 8, Windows Server 2012 R2 or Windows Server 2012. This tool checks the store against its own payload and repairs the corruptions that it detects by downloading required files through Windows update.<ref>{{cite web |url=https://support.microsoft.com/en-us/help/947821/fix-windows-update-errors-by-using-the-dism-or-system-update-readiness-tool |title=Fix Windows Update errors by using the DISM or System Update Readiness tool |work=Support|publisher=[[Microsoft]]|date=January 22, 2017 |access-date=February 11, 2017}}</ref>
▲System File Checker in Windows Vista and later Windows operating systems can scan specific individual files. Also, scans can be performed against an offline Windows installation folder to replace corrupt files, in case the Windows installation is not bootable. For performing offline scans, System File Checker must be run from another working installation of Windows Vista or a later operating system or from the Windows setup DVD which gives access to the [[Windows Recovery Environment]].
==References==▼
{{Reflist}}
==
*{{Cite book|first=Æleen|last=Frisch|year=2001|title=Windows 2000 Commands Pocket Reference|publisher=[[O'Reilly Media|O'Reilly]]|isbn=978-0-596-00148-3}}
*{{Cite book|author=John Paul Mueller|year=2007|title=Windows Administration at the Command Line for Windows Vista, Windows 2003, Windows XP, and Windows 2000|publisher=[[Wiley (publisher)|John Wiley & Sons]]|isbn=978-0470165799}}
▲==References==
==External links==
{{Wikibooks|Guide to Windows Commands}}
*[https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/sfc sfc | Microsoft Docs]
*[https://support.microsoft.com/en-us/help/929833/use-the-system-file-checker-tool-to-repair-missing-or-corrupted-system Use the System File Checker tool to repair missing or corrupted system files]
*[http://support.microsoft.com/kb/310747 Description of Windows XP and Windows Server 2003 System File Checker (Sfc.exe)]
|