TROUBLESHOOTING: Run System File Checker tool - SFC /scannow
1 Votes |
Versioning - This is the latest version.
1 | TROUBLESHOOTING: Run System File Checker tool - SFC /scannow | 12/6/2012 9:38:41 PM |
2 | TROUBLESHOOTING: Run System File Checker tool - SFC /scannow | 1/9/2013 8:47:33 AM |
3 | TROUBLESHOOTING: Run System File Checker tool - SFC /scannow | 5/6/2015 7:03:59 AM |
Description
From: http://bigfix.me/cdb/fixlet/1369
This task will run the Microsoft System File Checker tool.
Property Details
6038 | |
Beta - Preliminary testing ready for more | |
TROUBLESHOOTING: Run System File Checker tool - SFC /scannow | |
BESC | |
Troubleshooting | |
0 | |
Internal | |
jgs194 | |
9/19/2011 12:00:00 AM | |
sfc, scannow, troubleshoot | |
True | |
jgstew on 5/6/2015 7:03:59 AM | |
jgstew on 5/6/2015 7:03:59 AM | |
11862 Views / 49 Downloads | |
![]() ![]() ![]() ![]() ![]() |
Relevance
isWindows (Relevance 1172)

windows of operating system
Windows XP or later (Relevance 2996958)

version of operating system >= "5.1"
Used in 1 fixlet | * Results in a true/false |

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: |
Comments
![]() |
|
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? |
![]() |
|
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 |
![]() |
|
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. |