Skip to main content

Repair Windows

To repair Windows and fix ATT-ERR-001, you need to run a series of commands in Command Prompt with administrator privileges.

Step-by-Step Instructions

  1. Open Command Prompt as Administrator
    • Click the Start button or press the Windows key.
    • Type cmd in the search bar.
    • Right-click on Command Prompt from the search results and select Run as administrator.
  2. Run System File Checker (SFC)
    • In the Command Prompt window, type the following command and press Enter:
    sfc /scannow
    
    • Wait for the scan to complete. This process may take some time.
The System File Checker will scan and repair corrupted system files. Please be patient and wait until the process is complete.
  1. Run Deployment Imaging Service and Management Tool (DISM) Commands
    • After the SFC scan completes, run the following DISM commands one by one. Make sure to wait for each command to finish before running the next one.
    Dism /Online /Cleanup-Image /CheckHealth
    
    • This command checks for corruption in the Windows image.
    Dism /Online /Cleanup-Image /ScanHealth
    
    • This command scans the Windows image for any corruption.
    Dism /Online /Cleanup-Image /RestoreHealth
    
    • This command repairs the Windows image.
Running DISM commands can take a significant amount of time. Do not interrupt the process.

Summary of Commands

  • System File Checker (SFC):
    sfc /scannow
    
  • DISM Commands:
    Dism /Online /Cleanup-Image /CheckHealth
    Dism /Online /Cleanup-Image /ScanHealth
    Dism /Online /Cleanup-Image /RestoreHealth
    

Additional Steps (If Needed)

If the error persists after running the above commands, consider the following additional steps:

Update Windows

  1. Check for Updates
    • Open Settings > Update & Security > Windows Update.
    • Click Check for updates and install any available updates.
    • Restart your computer if prompted.

Perform a Clean Boot

  1. Clean Boot
    • Perform a clean boot to eliminate software conflicts by following the instructions here.

Reset Windows Components

  1. Reset Windows Components
    • Open Command Prompt as administrator and run the following commands to reset Windows Update components:
    net stop wuauserv
    net stop cryptSvc
    net stop bits
    net stop msiserver
    ren C:\Windows\SoftwareDistribution SoftwareDistribution.old
    ren C:\Windows\System32\catroot2 catroot2.old
    net start wuauserv
    net start cryptSvc
    net start bits
    net start msiserver
    
Renaming the SoftwareDistribution and catroot2 folders forces Windows to create new ones, which can resolve update issues.