
Click the Download 64-bit Version button (or choose the 32-bit version, depending on your system), and run the set-up package. This command scans the specified image for component store corruption, and then performs repair operations automatically. Example 3: Check an image for corruption and repairs the image PS C:\> Repair-WindowsImage -Online -RestoreHealth -Source "C:\Mounted\VHD\Windows\WinSxS", "C:\Windows\TEMP" -LimitAccess This command checks whether the specified image has been flagged as corrupted by a failed process and whether the corruption can be repaired. Example 2: Check an image for corruption and whether to repair the image PS C:\> Repair-WindowsImage -Path "C:\offline\Mount" -CheckHealth This command scans the specified image for component store corruption. Examples Example 1: Scan an image for corruption PS C:\> Repair-WindowsImage -Path "C:\offline\Mount" -ScanHealth The Source parameter specifies the location of known good versions of files that can be used for the repair, such as a path to the root directory of a mounted image.ĬheckHealth, ScanHealth, RestoreHealth, Source, and LimitAccess can only be used when servicing images that are running at least Windows 8 or Windows Server 2012. The RestoreHealth parameter scans the image for component store corruption, and then performs repair operations automatically. This operation will take several minutes. The ScanHealth parameter scans the image for component store corruption. The CheckHealth parameter checks whether the image has been flagged as corrupted by a failed process and whether the corruption can be repaired. The LimitAccess parameter prevents access to Windows Update (WU) as a Source for repairing online images. Use the Online parameter to specify the running operating system on your local computer, or use the Path parameter to specify the location of a mounted Windows image. The Repair-WindowsImage cmdlet repairs a Windows image in a WIM or VHD file.
In this article Syntax Repair-Windows Image Repairs a Windows image in a WIM or VHD file.