Solutions for Windows 11 version 23H2 update failure

The update to Windows 11 version 23H2 has begun to be distributed, but there have been reports of errors such as "0x80070001" and "0x80070002" occurring in some environments, causing the update to fail.

*If you are using a version that is no longer supported or if your PC does not meet the minimum requirements for Windows 11, you will not be able to update through Windows Update.

table of contents

Delete the Windows Update history

1. Press Windows Key + R to open Run, enter the following code and press Enter:

services.msc

2. The Services window will open, so scroll down and you will find "Windows Update". Double-click it to open it.

3. Change the startup type to "Disabled" and click Stop > OK.

Windows Update Properties
Windows Update Properties

4. Press Windows key + R to open Run, enter the following code and press Enter:

%windir%\SoftwareDistribution\DataStore

*%windir% refers to the "Drive where the OS is installed\Windows" folder.

5. The DataStore folder will open, so delete all folders and files inside.

.DataStore folder
.DataStore folder

6. You may be asked for administrative privileges when deleting, so click "Continue".

対象のフォルダーへのアクセスは拒否されました
対象のフォルダーへのアクセスは拒否されました
DataStore folder
DataStore folder

7. Close the DataStore folder and return to the service.

8. Double-click "Windows Update" to open it, change the startup type back to "Automatic (Delayed Start)", and click "Apply".

Windows Update Properties
Windows Update Properties

9. The "Start" button will be enabled, so start the service and click OK.

Windows Update Properties
Windows Update Properties

This completes the process of deleting the Windows Update history.

In this state, try updating to Windows 11 version 23H2.

Reset Windows Update components

If the above does not resolve the issue, try resetting Windows Update components and then updating.

I have created a batch file, so please copy the code, paste it into a text file, change the extension to ".bat" and save it. (If you do not specify the character code as "ANSI", the characters will be garbled and will not work properly.

What is a batch file?

Contents of the batch file to reset Windows Update components

@echo off

set /p a=Windows Update コンポーネントのリセットを開始するには y を 終了する場合は n を入力して Enter を押してください:
if /i "%a%"=="n" exit
if /i "%a%"=="y" goto :1
cls&%0

:1
net stop wuauserv
net stop bits
net stop cryptSvc
net stop msiserver

Ren %systemroot%\SoftwareDistribution SoftwareDistribution.old
Ren %systemroot%\System32\catroot2 catroot2.old

net start wuauserv
net start bits
net start cryptSvc
net start msiserver

echo ====================================================================================
echo.
echo Windows Update コンポーネントのリセットが完了しました。Enter を押して終了します。
pause

Download the batch file

If you are not comfortable creating batch files, you can download one here.

Target file: "Windows-Update-Component Reset.zip" (Ver 0.0.0.0)
ハッシュ値(SHA256):549b9ebc5728709874ef63d14c04f7a947344025889e99ec7b8dd9f5e346e63e

Reset Windows Update Components.zip

Once the download is complete, unzip the "Reset Windows Update Components.zip" file.

How to run a batch file

1. Right-click the batch file "Reset Windows Update Components.bat" and click "Run as administrator."

2. When the User Account Control screen appears, click "Yes".

3. To start the reset, type "y" and press Enter.

command prompt
command prompt

The command will start executing and will finish in a few seconds.

command prompt
command prompt

4. When you see the message "Windows Update components reset completed. Press Enter to exit," press Enter to close the command prompt.

Now that you have reset the Windows Update components, try updating to Windows 11 version 23H2 again.

If you found this article helpful, please share it on social media.

Person who wrote this article

Driven by questions arising from my daily PC use and the desire to "do more," I have been pursuing self-study in Windows since around 2008. I am sharing the "aha!" techniques and solutions I discovered through trial and error with the sole purpose of helping you in your PC life.

View profile

Comment:

To comment

[About submissions]
We welcome any questions or information regarding the content of the article.
However, please note that content unrelated to the purpose of the article, criticism of specific individuals or organizations, offensive language,Inappropriate wordsComments containing the above may be deleted or made private without notice at the discretion of the administrator.
Please note that spam may be automatically deleted by anti-spam measures.

CAPTCHA


table of contents