98SELTSB0x80070643


How to fix Windows Update Error 0x80070643

This guide was made for Windows 10, however it should also work on newer and previous versions of Windows.


PowerShell (Admin).

  • Disable the Windows Recovery Environment.
    PS C:\Windows\system32> reagentc /disable
    REAGENTC.EXE: Operation Successful.
    
  • We're now going to create a bigger WinRE partition, select the correct physical disk and partition.
    PS C:\Windows\system32> diskpart
    
    Microsoft DiskPart version 10.0.19041.3636
    
    Copyright (C) Microsoft Corporation.
    On computer: COBALT-W10M
    
    DISKPART> list disk
    
      Disk ###  Status         Size     Free     Dyn  Gpt
      --------  -------------  -------  -------  ---  ---
      Disk 0    Online           16 TB    33 MB        *
      Disk 1    Online         1863 GB  1024 KB        *
      Disk 2    Online          931 GB      0 B        *
    
    DISKPART> sel disk 2
    
    Disk 2 is now the selected disk.
    
    DISKPART> list part
    
      Partition ###  Type              Size     Offset
      -------------  ----------------  -------  -------
      Partition 1    System             100 MB  1024 KB
      Partition 2    Reserved            16 MB   101 MB
      Partition 3    Primary            930 GB   117 MB
      Partition 4    Recovery           517 MB   931 GB
    
    DISKPART> sel part 4
    
    Partition 4 is now the selected partition.
    
  • Delete the selected WinRE partition and list the remaining partitions to confirm that the correct partition has been erased, now select your C:\ drive (where your OS is installed).
    DISKPART> delete partition override
    
    DiskPart successfully deleted the selected partition.
    
    DISKPART> list part
    
      Partition ###  Type              Size     Offset
      -------------  ----------------  -------  -------
      Partition 1    System             100 MB  1024 KB
      Partition 2    Reserved            16 MB   101 MB
      Partition 3    Primary            930 GB   117 MB
    
    DISKPART> sel part 3
    
    Partition 3 is now the selected partition.
    
  • Press Win+R to open the "Run dialog", type diskmgmt.msc and press ENTER. Right click your C:\ drive and shrink it so that there is 2048MB unallocated at the end of the SSD, now come back to here to this guide and continue.
  • Create a new partition at the end of the SSD with this ID and GPT attributes, these are correct for the recovery partition and must be set EXACTLY the same as in these commands below.
    DISKPART> create partition primary id=de94bba4-06d1-4d40-a16a-bfd50179d6ac
    
    DiskPart succeeded in creating the specified partition.
    
    DISKPART> gpt attributes =0x8000000000000001
    
    DiskPart successfully assigned the attributes to the selected GPT partition.
    
    DISKPART> format quick fs=ntfs label="Windows RE tools"
    
      100 percent completed
    
    DiskPart successfully formatted the volume.
    
  • List all volumes to ensure the Windows RE tools partition has been created sucessfully, now exit diskpart.
    DISKPART> list vol
    
      Volume ###  Ltr  Label        Fs     Type        Size     Status     Info
      ----------  ---  -----------  -----  ----------  -------  ---------  --------
      Volume 0     F   Archive (18  NTFS   Partition     16 TB  Healthy
      Volume 1     D   860 EVO (2T  NTFS   Partition   1863 GB  Healthy
      Volume 2     C   Windows 10   NTFS   Partition    929 GB  Healthy    Boot
      Volume 3         EFI          FAT32  Partition    100 MB  Healthy    System
    * Volume 5         Windows RE   NTFS   Partition   2046 MB  Healthy    Hidden
    
    DISKPART> exit
    
    Leaving DiskPart...
    
  • Run the command below, if it fails you have the same issue as me so continue reading. If it completed sucessfully without any errors you're done! :D
  • The issue I had is my WinRE.wim file was missing, I had to extract this from my Windows installation media, follow along if you had the same issue, if not you can finish here on this block of commands.
    PS C:\Windows\system32> reagentc /enable
    REAGENTC.EXE: The Windows RE image was not found.
    
    PS C:\Windows\system32> reagentc /info
    Windows Recovery Environment (Windows RE) and system reset configuration
    Information:
    
        Windows RE status:         Disabled
        Windows RE location:
        Boot Configuration Data (BCD) identifier: 00000000-0000-0000-0000-000000000000
        Recovery image location:
        Recovery image index:      0
        Custom image location:
        Custom image index:        0
    
    REAGENTC.EXE: Operation Successful.
    

Continue only if the reagentc /enable command failed!

  • Download Windows 10 installation media and copy install.wim from the installation-media:\sources\ folder to C:\Images\install.wim. Also create the directory C:\Mount.
  • Get required information from install.wim.
    PS C:\Windows\system32> dism /Get-WimInfo /WimFile:"C:\Images\install.wim"
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.3636
    
    Details for image : C:\Images\install.wim
    
    Index : 1
    Name : Windows 10 Enterprise LTSC
    Description : Windows 10 Enterprise LTSC
    Size : 13,519,087,702 bytes
    
    Index : 2
    Name : Windows 10 Enterprise N LTSC
    Description : Windows 10 Enterprise N LTSC
    Size : 13,117,119,114 bytes
    
    The operation completed successfully.
    
  • I am running Windows 10 IoT Enterprise LTSC 21H2 which is binary identical to Windows 10 Enterprise LTSC so I can use the first image (Index: 1).
  • Mount the correct image to C:\Mount, make sure you choose the correct index with /index:1.
    1
    2
    3
    4
    5
    6
    7
    8
    PS C:\Windows\system32> Dism /Mount-Image /ImageFile:"C:\Images\install.wim" /index:1 /MountDir:"C:\mount" /Optimize /Checkintegrity
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.3636
    
    Mounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
  • Prepare the recovery folder.
    PS C:\Windows\system32> attrib -h -r -s C:\Mount\Windows\System32\Recovery\*.* /s /d
    
  • Copy the recovery image to the desktop from the mounted installation media.
    PS C:\Windows\system32> cp C:\Mount\Windows\System32\Recovery\Winre.wim C:\Users\Desktop```
    
    - Unmount the image and remove all of the temporary files.
    ``` powershell
    PS C:\Windows\system32> Dism.exe /UnMount-Image /MountDir:C:\mount /Commit
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.3636
    
    Saving image
    [==========================100.0%==========================]
    Unmounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
  • Assign the letter R:\ to the recovery partition so that it can be written to.
    PS C:\Windows\system32> diskpart
    
    Microsoft DiskPart version 10.0.19041.3636
    
    Copyright (C) Microsoft Corporation.
    On computer: COBALT-W10M
    
    DISKPART> list disk
    
      Disk ###  Status         Size     Free     Dyn  Gpt
      --------  -------------  -------  -------  ---  ---
      Disk 0    Online           16 TB    33 MB        *
      Disk 1    Online         1863 GB  1024 KB        *
      Disk 2    Online          931 GB      0 B        *
    
    DISKPART> sel disk 2
    
    Disk 2 is now the selected disk.
    
    DISKPART> list part
    
      Partition ###  Type              Size     Offset
      -------------  ----------------  -------  -------
      Partition 1    System             100 MB  1024 KB
      Partition 2    Reserved            16 MB   101 MB
      Partition 3    Primary            929 GB   117 MB
      Partition 4    Recovery          2046 MB   929 GB
    
    DISKPART> sel part 4
    
    Partition 4 is now the selected partition.
    
    DISKPART> assign letter=R
    
    DiskPart successfully assigned the drive letter or mount point.
    
    DISKPART> exit
    
    Leaving DiskPart...
    
  • Create the \Recovery\WindowsRE folder in the recovery partition and prepare the partition with the correct attributes.
    PS C:\Windows\system32> md R:\Recovery\WindowsRE
    
    
        Directory: R:\Recovery
    
    
    Mode                 LastWriteTime         Length Name
    ----                 -------------         ------ ----
    d-----        2024-02-14     01:39                WindowsRE
    
    
    PS C:\Windows\system32> attrib -h -r -s R:\*.* /s /d
    PS C:\Windows\system32> attrib -h -r -s R:\Recovery\WindowsRE\*.* /s /d
    File not found - R:\Recovery\WindowsRE\*.*
    
  • Now we're going to transfer the WinRE.wim image from your desktop to R:\Recovery\WindowsRE\.
    1
    2
    3
    4
    5
    6
    7
    8
    PS C:\Windows\system32> cp C:\Users\Brandon\Desktop\Winre.wim R:\Recovery\WindowsRE```
    
    - Set the source and target for the recovery image.
    ``` powershell
    PS C:\Windows\system32> Reagentc.exe /SetReImage /path R:\Recovery\WindowsRE /Target C:\Windows
    Directory set to: \\?\GLOBALROOT\device\harddisk2\partition4\Recovery\WindowsRE
    
    REAGENTC.EXE: Operation Successful.
    
  • Enable the WinRE image and check that it has correctly enabled.
    PS C:\Windows\system32> Reagentc.exe /enable
    REAGENTC.EXE: Operation Successful.
    
    PS C:\Windows\system32> Reagentc.exe /enable /target C:\windows
    REAGENTC.EXE: Operation Successful.
    
    PS C:\Windows\system32> Reagentc.exe /info /target C:\windows
    Windows Recovery Environment (Windows RE) and system reset configuration
    Information:
    
        Windows RE status:         Enabled
        Windows RE location:       \\?\GLOBALROOT\device\harddisk2\partition4\Recovery\WindowsRE
        Boot Configuration Data (BCD) identifier: b7dc3ade-ae30-11ee-8b54-2cf05d7a8a45
        Recovery image location:
        Recovery image index:      0
        Custom image location:
        Custom image index:        0
    
    REAGENTC.EXE: Operation Successful.
    
  • Unmount the recovery partition so that it doesn't show up in File Explorer
    PS C:\Windows\system32> diskpart
    
    Microsoft DiskPart version 10.0.19041.3636
    
    Copyright (C) Microsoft Corporation.
    On computer: COBALT-W10M
    
    DISKPART> list disk
    
      Disk ###  Status         Size     Free     Dyn  Gpt
      --------  -------------  -------  -------  ---  ---
      Disk 0    Online           16 TB    33 MB        *
      Disk 1    Online         1863 GB  1024 KB        *
      Disk 2    Online          931 GB      0 B        *
    
    DISKPART> sel disk 2
    
    Disk 2 is now the selected disk.
    
    DISKPART> list vol
    
      Volume ###  Ltr  Label        Fs     Type        Size     Status     Info
      ----------  ---  -----------  -----  ----------  -------  ---------  --------
      Volume 0     F   Archive (18  NTFS   Partition     16 TB  Healthy
      Volume 1     D   860 EVO (2T  NTFS   Partition   1863 GB  Healthy
      Volume 2     C   Windows 10   NTFS   Partition    929 GB  Healthy    Boot
      Volume 3         EFI          FAT32  Partition    100 MB  Healthy    System
    * Volume 4     R   Windows RE   NTFS   Partition   2046 MB  Healthy    Hidden
    
    DISKPART> list part
    
      Partition ###  Type              Size     Offset
      -------------  ----------------  -------  -------
      Partition 1    System             100 MB  1024 KB
      Partition 2    Reserved            16 MB   101 MB
      Partition 3    Primary            929 GB   117 MB
    * Partition 4    Recovery          2046 MB   929 GB
    
    DISKPART> remove
    
    DiskPart successfully removed the drive letter or mount point.
    
  • Confirm once more that the drive letter has actually been removed by typing the same command again:
    1
    2
    3
    DISKPART> remove
    
    The selected volume has no letter or mount point to remove.
    
  • You're DONE, now run Windows Update and hope that it works xD!
Edit
Pub: 14 Feb 2024 01:52 UTC
Edit: 14 Feb 2024 10:48 UTC
Views: 472