CmdID / PowerShell / Cmdlets / Repair
Repair-WindowsImage
Repairs a Windows image in a WIM or VHD file. Windows Server PowerShell reference
From the Windows Server PowerShell reference 16 parameters Its page in the reference
Parameters
-CheckHealthChecks whether the image has been flagged as corrupted by a failed process and whether the corruption can be repaired.-DeferDefers cleanup operations until the next automatic maintenance.-LimitAccessPrevents DISM from contacting Windows Update (WU) when searching for the source files to repair an online image.-LogLevel, -LLSpecifies the maximum output level shown in the logs.-LogPath, -LPSpecifies the full path and file name to log to.-NoRestartSuppresses reboot.-OnlineSpecifies that the action is to be taken on the operating system that is currently running on the local computer.-PathSpecifies the full path to the root directory of the offline Windows image that you will service.-ResetBaseResets the base of superseded components to further reduce the component store size.-RestoreHealthScans the image for component store corruption, and then performs repair operations automatically.-ScanHealthScans the image for component store corruption.-ScratchDirectorySpecifies a temporary directory that will be used when extracting files for use during servicing.-SourceSpecifies the location of the files that are required to repair an image.-StartComponentCleanupCleans up superseded components to reduce the size of the component store.-SystemDriveSpecifies the path to the location of the BootMgr files.-WindowsDirectorySpecifies the path to the Windows directory relative to the image path.