Forrest logo
back to the sfc tool

sfc:tldr:d94ee

sfc: When repairing offline, specify the Windows directory.
$ sfc /offwindir=${path\to\directory}
try on your machine

The command "sfc /offwindir=${path\to\directory}" is a Windows command used to run the System File Checker (SFC) tool with a specific offline Windows directory.

Here's a breakdown of the command components:

  • "sfc" refers to the System File Checker tool, which is a utility in Windows that scans for corrupted or missing system files and attempts to repair them.
  • "/offwindir=${path\to\directory}" is an argument that specifies the offline Windows directory where the SFC tool should run. The path enclosed in ${ } should be replaced with the actual path to the directory you want to run the SFC tool against. For example, if you want to target the C:\Windows\Offline directory, you would replace ${path\to\directory} with "C:\Windows\Offline".

Using this command allows you to run the System File Checker tool against an offline Windows installation. This can be useful when you need to repair corrupted or missing system files on a Windows installation that is not currently running.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the sfc tool