You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: support/windows-server/installing-updates-features-roles/troubleshoot-windows-update-error-0x80070002.md
+33-31Lines changed: 33 additions & 31 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
2
title: Troubleshoot Windows Update Error 0x80070002
3
3
description: Learn how to resolve the Windows Update error 0x80070002, which occurs due to missing or corrupt files or incomplete updates.
4
-
ms.date: 04/08/2025
4
+
ms.date: 04/16/2025
5
5
manager: dcscontentpm
6
6
audience: itpro
7
7
ms.topic: troubleshooting
@@ -10,27 +10,27 @@ ms.custom:
10
10
- sap:windows servicing,updates and features on demand\windows update fails - installation stops with error
11
11
- pcy:WinComm Devices Deploy
12
12
---
13
-
# Troubleshoot Windows update error 0x80070002
13
+
# Troubleshoot Windows Update error 0x80070002
14
14
15
15
The Windows Update error 0x80070002 typically occurs because of missing or corrupt files necessary for the update or incomplete previous updates. Understanding the root causes and following the appropriate troubleshooting steps can help resolve this issue effectively.
:::image type="content" source="./media/troubleshoot-windows-update-error-0x80070002/wusa-error-0x80070002.png" alt-text="Screenshot showing the Windows Update error 0x80070002.":::
18
18
19
19
## Prerequisites
20
20
21
21
Before proceeding with the troubleshooting steps, ensure you have backed up your operating system (OS) disk. This precautionary step is crucial to prevent data loss during the resolution process.
22
22
23
-
## Root cause for Windows update error 0x80070002
23
+
## Root cause
24
24
25
25
The error 0x80070002 is primarily caused by missing or corrupt files that are necessary for the update process. This issue can occur due to:
26
26
27
27
- Incomplete previous updates that left the system in an inconsistent state.
28
28
- Missing DLLs or system files in critical directories.
29
-
- Registry entries pointing to non-existent services or files.
29
+
- Registry entries pointing to nonexistent services or files.
If the Security Monthly Rollup fails to install with error 0x80070002, check the CBS.log located at `C:\Windows\Logs\CBS\CBS.log`. You might find entries indicating missing files or services that failed to start.
33
+
If the Security Monthly Rollup fails to install with error 0x80070002, check the **CBS.log** file located at `C:\Windows\Logs\CBS\CBS.log`. You might find entries indicating missing files or services that failed to start.
34
34
35
35
```output
36
36
Info CSI 000000fb Begin executing advanced installer phase 50 (0x00000032) index 0 (sequence 0)
Check the directory `C:\Windows\Microsoft.NET\Framework\v4.0.30319` to confirm if it's empty.
42
42
43
-
:::image type="content" source="./media/troubleshoot-windows-update-error-0x80070002/updateerror0x80070002-fileexplorer.png" alt-text="Empty directory in Windows Explorer":::
43
+
:::image type="content" source="./media/troubleshoot-windows-update-error-0x80070002/empty-directory-explorer.png" alt-text="Screenshot showing the empty directory in Windows Explorer." lightbox="./media/troubleshoot-windows-update-error-0x80070002/empty-directory-explorer.png":::
44
44
45
45
### Resolution: Registry key deletion
46
46
@@ -50,14 +50,14 @@ Check the directory `C:\Windows\Microsoft.NET\Framework\v4.0.30319` to confirm i
:::image type="content" source="./media/troubleshoot-windows-update-error-0x80070002/updateerror0x80070002-registryhklm.png" alt-text="Registry keys for clr_optimization":::
53
+
:::image type="content" source="./media/troubleshoot-windows-update-error-0x80070002/registry-keys-hklm.png" alt-text="Screenshot showing Registry keys for clr_optimization." lightbox="./media/troubleshoot-windows-update-error-0x80070002/registry-keys-hklm.png":::
54
54
55
55
2. Back up and delete these registry keys.
56
56
3. Attempt to install the update again.
57
57
58
58
## Symptom 2: Update installation failure
59
59
60
-
If you encounter error 0x80070002 during update installation, review the CBS.log for entries like the following:
60
+
If you encounter error 0x80070002 during update installation, review the **CBS.log** file for entries like the following:
61
61
62
62
```output
63
63
Error CSI 00000e47 (F) STATUS_OBJECT_NAME_NOT_FOUND #13367681# from Windows::Rtl::SystemImplementation::DirectFileSystemProvider::SysCreateFile(flags = (AllowSharingViolation), handle = {provider=NULL, handle=0, name= ("null")}, da = (SYNCHRONIZE|FILE_READ_ATTRIBUTES), oa = @0xa130e9e088->OBJECT_ATTRIBUTES {s:48; rd:NULL; on:[69]"\??\C:\ProgramData\Microsoft\Windows\Start Menu\Programs\System Tools"; a:(OBJ_CASE_INSENSITIVE)}, iosb = @0xa130e9e068, as = (null), fa = 0, sa = (FILE_SHARE_READ|FILE_SHARE_WRITE|FILE_SHARE_DELETE), cd = FILE_OPEN, co = (FILE_SYNCHRONOUS_IO_NONALERT|0x00004000), eab = NULL, eal = 0, disp = Invalid)
@@ -67,19 +67,19 @@ Verify the existence of the folder `C:\ProgramData\Microsoft\Windows\Start Menu\
67
67
68
68
### Resolution: Copy missing folders
69
69
70
-
Copy the folder "System Tools" from a working machine to the affected machine, ensuring all shortcuts are included.
70
+
Copy the **System Tools** folder from a working machine to the affected machine, ensuring all shortcuts are included.
71
71
72
72
## Symptom 3: Missing DLLs in C:\Windows\WinSxS
73
73
74
-
Monthly rollups may fail with error 0x80070002 due to missing DLLs in the Side-by-Side store. Check the WindowsUpdate.log and CBS.log for missing files like `DWrite.dll` and `FntCache.dll`.
74
+
Monthly rollups might fail with error 0x80070002 due to missing DLLs in the Side-by-Side store. Check the **WindowsUpdate.log** and **CBS.log** for missing files like `DWrite.dll` and `FntCache.dll`.
75
75
76
76
```output
77
77
Info CBS Failed to find file: x86_microsoft-windows-directwrite_31bf3856ad364e35_7.1.7601.23545_none_229deeb1ba2a85d3DWrite.dll [HRESULT = 0x80070002 - ERROR_FILE_NOT_FOUND]
78
78
```
79
79
80
80
### Resolution: Restore missing DLLs
81
81
82
-
1. Identify missing DLLs from the CBS logs.
82
+
1. Identify missing DLLs from the **CBS logs** file.
83
83
2. Source these files from a working server and place them in the correct directories. To do so, run the following commands:
84
84
85
85
```console
@@ -88,7 +88,7 @@ Info CBS Failed to find file: x86_microsoft-windows-directwrite_31bf3856ad364e35
88
88
cd c:\windows\winsxs
89
89
```
90
90
91
-
Then, run the `mkdir` command to create a folder for the missing DLL file. For example, if the file x86_microsoft-windows-directwrite_31bf3856ad364e35_7.1.7601.23545_none_229deeb1ba2a85d3DWrite.dll is missing, run the following command:
91
+
Then, run the `mkdir` command to create a folder for the missing DLL file. For example, if the file **x86_microsoft-windows-directwrite_31bf3856ad364e35_7.1.7601.23545_none_229deeb1ba2a85d3DWrite.dll** is missing, run the following command:
@@ -106,21 +106,23 @@ Info CBS Failed to find file: x86_microsoft-windows-directwrite_31bf3856ad364e35
106
106
107
107
If a cumulative update on Windows Server rolls back after a restart, check the Event Viewer for error 0x80070002 and review the CBS logs for driver update issues.
108
108
109
-
Here is a sample of the event log:
109
+
Here's a sample of the event log:
110
110
111
-
> Log Name: System
112
-
> Source: Microsoft-Windows-WindowsUpdateClient
113
-
> Date: DD/MM/yyyy hh:ss:ff
114
-
> Event ID: 20
115
-
> Task Category: Windows Update Agent
116
-
> Level: Error
117
-
> Keywords: Installation,Installation
118
-
> User: SYSTEM
119
-
> Computer: XXXXXXXXXXXXXXXXXXXXX
120
-
> Description:
121
-
> Installation Failure: Windows failed to install the following update with error 0x80070002: Security Update for Windows (KB4586793).
111
+
```output
112
+
Log Name: System
113
+
Source: Microsoft-Windows-WindowsUpdateClient
114
+
Date: DD/MM/yyyy hh:ss:ff
115
+
Event ID: 20
116
+
Task Category: Windows Update Agent
117
+
Level: Error
118
+
Keywords: Installation,Installation
119
+
User: SYSTEM
120
+
Computer: <ComputerName>
121
+
Description:
122
+
Installation Failure: Windows failed to install the following update with error 0x80070002: Security Update for Windows (KB4586793).
123
+
```
122
124
123
-
The failure is caused by an issue during update drivers operation. For example, the following CBS.logindicates the driver flpydisk.inf is the cause:
125
+
The failure is caused by an issue during update drivers operation. For example, the following **CBS.log** file indicates the `flpydisk.inf` driver is the cause:
124
126
125
127
```output
126
128
Info CBS INSTALL index: 55, phase: 2, result 2, inf: flpydisk.inf
@@ -129,16 +131,16 @@ Info CBS Doqe: Failed installing driver updates [HRESULT = 0x80070002 - ERROR_FI
129
131
130
132
### Resolution: Import registry keys
131
133
132
-
To fix the issue, you need to export the registry keys for the driver on a working computer, and then import them on the computer that have the issue.
134
+
To fix the issue, you need to export the registry keys for the driver on a working computer, and then import them on the computer with the issue.
133
135
134
-
The resolution depends on what is missing. For example, to fix the issue with flpydisk.inf, which we listed as an example in the symptom section, export and import the following two registry keys.
136
+
The resolution depends on what is missing. For example, to fix the issue with `flpydisk.inf`, which is listed as an example in the symptom section, export and import the following two registry keys.
0 commit comments