Share to: share facebook share twitter share wa share telegram print page

System File Checker

sfc
Developer(s)Microsoft
Initial releaseJune 25, 1998; 26 years ago (1998-06-25)
Operating systemMicrosoft Windows
TypeSystem utility
LicenseProprietary commercial software
Websitedocs.microsoft.com/en-us/windows-server/administration/windows-commands/sfc

System File Checker (SFC[1]) is a utility in Microsoft Windows that allows users to scan for and restore corrupted Windows system files.[2]

Overview

Microsoft ships this utility with Windows 98, Windows 2000 and all subsequent versions of the Windows NT family of operating systems. In Windows Vista, Windows 7 and Windows 10, System File Checker is integrated with Windows Resource Protection (WRP), which protects registry keys and folders as well as critical system files. Under Windows Vista, sfc.exe can be used to check specific folder paths, including the Windows folder and the boot folder.

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 %WinDir%\System32\dllcache.

Windows Resource Protection (WRP) works by setting discretionary access-control lists (DACLs) and access control lists (ACLs) defined for protected resources. If any changes are detected to a protected system file, the modified file is restored from a cached copy located in a folder at %WinDir%\WinSxS\Backup.[3] Permission for full access to modify WRP-protected resources is restricted to the processes using the Windows Modules Installer service (TrustedInstaller.exe). Administrators no longer have full rights to system files.

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.

System File Checker was first introduced on Windows 98 as a GUI utility. It offered scanning and restoration of corrupted system files by matching the version number against a database containing the original version number of the files in a fresh Windows 98 installation. This method of file protection was basic. It determined system files by file extension and file path. It was able to restore files from the installation media or a source specified by the user. Windows 98 did not offer real-time system file protection beyond file attributes; therefore, no preventive or reactive measure was available.

All Windows NT-based operating systems since Windows 2000 introduced real-time file protection, called Windows File Protection (WFP).[4]

In addition, the System File Checker utility (sfc.exe) 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 ME,[5] as it was replaced with System File Protection (SFP).[6] Similar to WFP, SFP offered real-time protection.

Issues

The System File Checker component included with versions of Windows 2000 earlier than Service Pack 4 overrode patches distributed by Microsoft;[7] this was rectified in Windows 2000 Service Pack 4.

Usage

In Windows NT-based operating systems, System File Checker can be invoked via Windows Command Prompt (with Admin privilege[8]), with the following command:

  • sfc /scannow (to repair problems)
  • or sfc /verifyonly (no repair)

If it finds a problem, it will attempt to replace the problematic files from the DLL Cache (%WinDir%\System32\dllcache). 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 SourcePath and ServicePackSourcePath.[9] It may keep prompting for the installation media even if the user supplies it if these values are not correctly set.[10]

In Windows Vista and onwards, files are protected using access control lists (ACLs), and if it finds a problem, it will attempt to replace the problematic files from the Windows Side-by-side Backup (%WinDir%\WinSxS\Backup).[3] However, the above command has not changed.

System File Checker in Windows Vista and later Windows operating systems can scan specified 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[11] or a recovery drive which gives access to the Windows Recovery Environment.

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.[12]

References

  1. ^ Boswell, William (2003). "Using the System File Checker, SFC". Inside Windows Server 2003. Inside Series. p. 860. ISBN 9780735711587. Retrieved 2017-07-23. 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 D11Cache directory files if files are accidentally deleted.
  2. ^ "MS-DOS and Windows command line SFC command".
  3. ^ a b stevewhims (2021-01-07). "Protected Resource List - Win32 apps". learn.microsoft.com. Retrieved 2024-03-15.
  4. ^ "Description of the Windows File Protection Feature". Support. Microsoft. December 15, 2003. Archived from the original on October 20, 2004. Retrieved August 28, 2006.
  5. ^ Spector, Lincoln (February 14, 2001). "Answer Line: Windows 98 Utilities Missing in Windows Me?". PC World. IDG. Archived from the original on June 5, 2011. Retrieved December 26, 2011.
  6. ^ "System File Protection and Windows Me". Microsoft. December 4, 2011. Archived from the original on June 22, 2004. Retrieved August 28, 2006.
  7. ^ "The SFC /SCANNOW Command May Overwrite Hotfix Files". Support. Microsoft. October 30, 2006. Archived from the original on November 16, 2006. Retrieved February 1, 2010.
  8. ^ "SFC - System File CheckerWindows CMD". SS64.com. Retrieved 2023-09-12.
  9. ^ "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". Support. Microsoft. January 13, 2005. Archived from the original on January 16, 2007.
  10. ^ "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". Support. Microsoft. July 5, 2005. Archived from the original on February 7, 2007.
  11. ^ kumar, Rohit (26 July 2016). "Run System File Checker Tool to Repair Windows 10/8/7 files". Craxworld. Self Published. Archived from the original on September 11, 2016.
  12. ^ "Fix Windows Update errors by using the DISM or System Update Readiness tool". Support. Microsoft. January 22, 2017. Retrieved February 11, 2017.

Further reading

Read other articles:

СелоБелоречицаукр. Білорічиця 50°40′35″ с. ш. 31°59′50″ в. д.HGЯO Страна  Украина Область Черниговская Район Прилукский Сельский совет Белоречицкий История и география Основан 1600 Прежние названия до 1945 — Вейсбаховка Площадь 2,953 км² Высота центра 124 м Тип климата ...

English businessman For other people with the same name, see George Herbert (disambiguation). SirGeorge Sidney HerbertBtSir George Sidney Herbert in 1937Personal detailsBorn(1886-10-08)8 October 1886Died30 January 1942(1942-01-30) (aged 55)Bath, SomersetRelationsReginald Herbert, 15th Earl of PembrokeSir Sidney Herbert, 1st BaronetParent(s)Sidney Herbert, 14th Earl of PembrokeLady Beatrix Louisa LambtonEducationEton CollegeAlma materMagdalen College, OxfordMilitary serviceAllegianceUnite...

Der Titel dieses Artikels ist mehrdeutig. Weitere Bedeutungen sind unter Polohy (Begriffsklärung) aufgeführt. Polohy Пологи Polohy (Ukraine) Polohy Basisdaten Oblast: Oblast Saporischschja Rajon: Rajon Polohy Höhe: 102 m Fläche: 15,95 km² Einwohner: 19.547 (2016) Bevölkerungsdichte: 1.226 Einwohner je km² Postleitzahlen: 70600 Vorwahl: +380 6165 Geographische Lage: 47° 29′ N, 36° 15′ O47.48305555555636.25Koordinaten: 47° 28′ 59″ N, 36...

Pour les articles homonymes, voir Bloody Mary (homonymie). Bloody Mary Région d'origine Paris ( France) Alcool principal en volume Vodka Décoration / garniture Branche de céleri ou de livèche, carotte, olive, rondelle de citron… Type de verre Tumbler Ingrédients communs Jus de tomate, jus de citron, piment, épices modifier  Le Bloody Mary (littéralement « Marie la sanguinaire »[1]) est un cocktail plus ou moins fortement pimenté et épicé selon les goûts, à base ...

Election for governor of Maryland, U.S. 1919 Maryland gubernatorial election ← 1915 November 4, 1919 1923 →   Nominee Albert Ritchie Harry Nice Party Democratic Republican Popular vote 112,240 112,075 Percentage 49.06% 48.99% County results Ritchie:      40–50%      50–60% Nice:      40–50%      50–60%      60–70% Governor befor...

British politician Robert Plumer Ward Robert Ward, or from 1828 Robert Plumer Ward (19 March 1765 – 13 August 1846),[1] was an English barrister, politician, and novelist. George Canning said that his law books were as pleasant as novels, and his novels as dull as law books.[2] Life He was born in Mount Street, Mayfair, London, on 19 March 1765, the son of John Ward by his wife Rebecca Raphael. His father was a merchant in Gibraltar, also for many years was chief clerk to th...

Palazzo del Quirinale, residenza ufficiale del Presidente della Repubblica Italiana e della sua famiglia Le consorti dei Presidenti della Repubblica Italiana molto spesso hanno ruoli e compiti attribuiti loro dal protocollo sia nel Palazzo del Quirinale sia durante visite ufficiali.[1][2] Indice 1 Terminologia 2 Storia 3 Elenco 3.1 Supplenti 3.2 Consorti viventi degli ex presidenti della Repubblica e supplenti 4 Note 5 Voci correlate 6 Altri progetti Terminologia Tradizionalme...

Batalyon Infanteri 645/Gardatama YudhaLambang Brigif 19/KhatulistiwaDibentuk6 Desember 2018NegaraIndonesiaCabangInfanteriTipe unitSatuan TempurPeranPasukan SenapanBagian dariBrigade Infanteri 19/KhatulistiwaMarkasSambas Kalimantan BaratJulukanYonif 645/GTYMotoBerani Pantang MundurBaretHijauMaskotKeris, Pedang dan SenapanUlang tahun6 Desember Batalyon Infanteri 645/Gardatama Yudha atau Yonif 645/GTY merupakan Batalyon Infanteri di bawah komando Brigade Infanteri 19/Khatulistiwa, Kodam XII/Tanj...

Campaigns of genocide within German-occupied Estonia during WWII Corpses found by the Soviet authorities at the Klooga concentration camp after the Nazi German forces' departure (late 1944) The Holocaust in Estonia refers to the Nazi crimes during the 1941-1944 occupation of Estonia by Nazi Germany. Prior to the war, there were approximately 4,300 Estonian Jews. During the 1940-1941 Soviet occupation of Estonia, about 10% of the Jewish population was deported to Siberia, along with other Esto...

Mario ZenariKardinal, Nuncio Apostolik untuk SuriahGerejaGereja Katolik RomaPenunjukan30 Desember 2008PendahuluGiovanni Battista MorandiniJabatan lainKardinal-Deakon Santa Maria delle Grazie alle Fornaci fuori Porta CavalleggeriImamatTahbisan imam5 Juli 1970oleh Giuseppe CarraroTahbisan uskup25 September 1999oleh Angelo SodanoPelantikan kardinal19 November 2016oleh Paus FransiskusPeringkatKardinal DeakonInformasi pribadiNama lahirMario ZenariLahir05 Januari 1946 (umur 77)Villaf...

2010 American action fantasy film Prince of Persia:The Sands of TimeTheatrical release posterDirected byMike NewellScreenplay by Boaz Yakin Doug Miro Carlo Bernard Story byJordan MechnerBased onPrince of Persiaby Jordan MechnerProduced byJerry BruckheimerStarring Jake Gyllenhaal Ben Kingsley Gemma Arterton Alfred Molina CinematographyJohn SealeEdited by Michael Kahn Martin Walsh Mick Audsley Music byHarry Gregson-WilliamsProductioncompanies Walt Disney Pictures Jerry Bruckheimer Films Distrib...

R Doradus gambarInfrared interferometrik R Doradus Data pengamatan Epos J2000      Ekuinoks J2000 Rasi bintang Dorado Asensio rekta  04j 36m 45.59127d[1] Deklinasi  -62° 04′ 37.7974″[1] Magnitudo tampak (V) 4.8–6.6[2]5.40[3] Ciri-ciri Tahap evolusi AGB Kelas spektrum M8III:e[4] Magnitudo semu (J) −2.6[5] Magnitudo semu (K) −4.2[5] In...

Norwegian rapper and singer Lars VaularLars Vaular performing in 2018Background informationBirth nameLars Nesheim VaularBorn (1984-09-20) 20 September 1984 (age 39)Bergen, NorwayGenresHip hopOccupation(s)Rapper, singer, songwriterYears active2003–presentWebsitewww.larsvaular.noMusical artist Lars Nesheim Vaular (born 20 September 1984) is a Norwegian rapper, singer and songwriter from Åsane, Bergen.[1] He started rapping in 2003. He initially released songs under the duo Tier'...

Indian civil engineer, administrator, and former prime minister of Mysore Kingdom SirM. VisvesvarayaKCIE, FAScVisvesvaraya in his 40s19th Dewan of MysoreIn office1912–1918MonarchKrishna Raja Wadiyar IVPreceded byT. Ananda RaoSucceeded byM. Kantaraj Urs Personal detailsBornMokshagundam Visvesvaraya15 September 1861Muddenahalli, Kingdom of Mysore, British IndiaDied12/14 April 1962 (aged 100)Bangalore, Mysore State, India(present-day Karnataka, India)NationalityBritish India (1861-1947) India ...

هذه المقالة يتيمة إذ تصل إليها مقالات أخرى قليلة جدًا. فضلًا، ساعد بإضافة وصلة إليها في مقالات متعلقة بها. (يونيو 2016) كيون دولينج معلومات شخصية الميلاد 8 مايو 1980 (العمر 43 سنة)فورت لاودردال الطول 6 قدم 3 بوصة (1.9 م) مركز اللعب هجوم خلفي،  ومدافع مسدد الهدف  الجنسية ...

Ganghaan:Pinulongan Ang Rinuso maoy pinulongang Indo-Urupanhon. Kinìng maong artikulo mao usa ka Saha. Makatábang ka sa Wikipedya pinaági sa pag-uswág ug pag-punô niini.thu Galeriya sa hulagway

British historian (born 1956) Paul GilroyFRSL FBAGilroy in 2019Born (1956-02-16) 16 February 1956 (age 67)London, EnglandSpouseVron WareChildren2ParentsBeryl GilroyPatrick GilroyAwardsHolberg Prize (2019)Academic backgroundAlma materUniversity of SussexUniversity of BirminghamThesisRacism, Class and the Contemporary Cultural Politics of Race and Nation (1986)Doctoral advisorStuart HallAcademic workDisciplineCultural studiessociologyInstitutionsSouth Bank PolytechnicUniversity of...

Rainforest in Jambi, Sumatra, Indonesia Harapan Rainforest is a 98,555-hectare area of rainforest in the province of Jambi, Sumatra, Indonesia.[1] The British Royal Society for the Protection of Birds is campaigning to plant one million new trees to renew the forest because of its rich wildlife, which is vulnerable to the logging industry.[2] Flora and fauna Despite having been selectively logged in the 1970s, the forest is still considered among the most biodiverse on the pla...

1904 kidnapping Perdicaris IncidentUS newspaper cartoon on the incidentDate18 May – 21 June 1904LocationTangier, MoroccoTypeKidnappingMotivePayment of RansomTargetIon Hanford PerdicarisCromwell VarleyOrganized byAhmed al-RaisuniParticipants9-150 of Raisuni's menChargesPayment by Abd al-Aziz:$70,000 to Ahmed al-Raisuni$4,000 to the United States Ion Perdicaris, June 1904, Tacoma Times The Perdicaris affair, also known as the Perdicaris incident, refers to the kidnapping of Greek-American Ion...

هذه المقالة يتيمة إذ تصل إليها مقالات أخرى قليلة جدًا. فضلًا، ساعد بإضافة وصلة إليها في مقالات متعلقة بها. (مايو 2023) محاضرات فوكو في الكوليج دو فرانسمعلومات عامةالمؤلف ميشال فوكو اللغة الفرنسية البلد فرنسا الموضوع فلسفة النوع الأدبي محاضرة تعديل - تعديل مصدري - تعديل ويكي ب...

Kembali kehalaman sebelumnya