TROUBLESHOOTING: Run System File Checker tool - SFC /scannow
Log In or Register to download the BES file, and more.

1 Votes

Versioning - This is the latest version.

1TROUBLESHOOTING: Run System File Checker tool - SFC /scannow12/6/2012 9:38:41 PM
2TROUBLESHOOTING: Run System File Checker tool - SFC /scannow1/9/2013 8:47:33 AM
3TROUBLESHOOTING: Run System File Checker tool - SFC /scannow5/6/2015 7:03:59 AM


Property Details

ID6038
StatusBeta - Preliminary testing ready for more
TitleTROUBLESHOOTING: Run System File Checker tool - SFC /scannow
DomainBESC
CategoryTroubleshooting
Download Size0
SourceInternal
Source IDjgs194
Source Release Date9/19/2011 12:00:00 AM
Keywordssfc, scannow, troubleshoot
Is TaskTrue
Added by on 5/6/2015 7:03:59 AM
Last Modified by on 5/6/2015 7:03:59 AM
Counters 11862 Views / 49 Downloads
User Rating 1 star 2 star 3 star 4 star 5 star * Average over 0 ratings. ** Log In or Register to add your rating.

Relevance

isWindows (Relevance 1172)
Used in 1157 fixlets and 540 analyses   * Results in a true/false
Show indented relevance
windows of operating system
Used in 2 fixlets   * Results in a true/false
Show indented relevance
exists service "TrustedInstaller"
Windows XP or later (Relevance 2996958)
Used in 20 fixlets and 9 analyses   * Results in a true/false
Show indented relevance
version of operating system >= "5.1"
Used in 1 fixlet   * Results in a true/false
Show indented relevance
exists file "sfc.exe" of system x64 folder

Actions

Action 1 (default)

Action Link Click here to deploy this action.
Script Type BigFix Action Script
// http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/system_file_checker.mspx?mfr=true

// SFC relies on the "TrustedInstaller" service:
// http://www.winhelponline.com/blog/fix-for-error-windows-resource-protection-could-not-start-the-repair-service-when-running-sfc-in-vista/
if{not exists running service "TrustedInstaller"}
    waithidden cmd.exe /C net start TrustedInstaller
endif

continue if{ exists running service "TrustedInstaller" }

// http://pic.dhe.ibm.com/infocenter/tivihelp/v26r1/index.jsp?topic=%2Fcom.ibm.tem.doc_8.2%2FPlatform%2FAction%2Fc_action_launch_preference_low_p.html
// launch exe's with low priority settings to help prevent disrupting the user
action launch preference low-priority

// Run the System File Checker Utility
// http://support.microsoft.com/kb/929833
continue if{exists running service "TrustedInstaller"}
waithidden sfc /scannow
Success Criteria

This action will be considered successful when the applicability relevance evaluates to false.


Sharing

Social Media:
Share this page on Yammer

Comments

Log In or Register to leave comments!
jgstew -
Thanks for the comment. I made this a very long time ago, so I could see how that could happen, but I thought I used it successfully on 64bit systems. Do you know what version of windows this was?
josh.pena -
This action wasn't working properly on any of our 64-bit systems. After some troubleshooting I discovered that it was because the action uses the 32-bit version of sfc by default, so we had to turn wow64 redirection off. To fix, simply add this line to the beginning of the action: action uses wow64 redirection false
jgstew -
I updated the relevance to be more generic to add support for windows 8. This may now be relevant on some machines that it should not be, but it should be unlikely due to the other checks added.