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.
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.
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.
6. You may be asked for administrative privileges when deleting, so click "Continue".
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".
9. The "Start" button will be enabled, so start the service and click OK.
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.)
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.
The command will start executing and will finish in a few seconds.
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.









Comment: