SFC Logfile settings

Ever felt the need to change the location of the SFC log file? Well you can using an environment variable. This is particurlarly useful when in the Windows Recovery Console. Set the following environment variable before running SFC:

 

SET WINDOWS_TRACING_LOGFILE=D:\CBS.LOG
SFC /SCANNOW /OFFBOOTDIR=D:\ /OFFWINDIR=D:\WINDOWS