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
+53-55Lines changed: 53 additions & 55 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,22 +7,28 @@ audience: itpro
7
7
ms.topic: troubleshooting
8
8
ms.reviewer: scotro,mwesley
9
9
ms.custom:
10
-
- sap:add_sap
11
-
- pcy:add_pcy
10
+
- sap:windows servicing,updates and features on demand\windows update fails - installation stops with error
11
+
- pcy:WinComm Devices Deploy
12
12
---
13
13
# Troubleshoot Windows Update Error 0x80070002
14
14
15
-
Encountering the Windows Update error 0x80070002 can be frustrating. This error typically arises due to 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.
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.
Before proceeding with the troubleshooting steps, ensure you have backed up your OS disk. This precautionary step is crucial to prevent data loss during the resolution process.
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
-
## How to Identify the Issue
23
+
## Root Cause for Windows Update Error 0x80070002
24
+
25
+
The error 0x80070002 is primarily caused by missing or corrupt files necessary for the update process. This can occur due to:
26
+
27
+
- Incomplete previous updates that left the system in an inconsistent state.
28
+
- Missing DLLs or system files in critical directories.
29
+
- Registry entries pointing to non-existent 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.
28
34
@@ -36,88 +42,71 @@ Check the directory `C:\Windows\Microsoft.NET\Framework\v4.0.30319` to confirm i
36
42
37
43
:::image type="content" source="./media/troubleshoot-windows-update-error-0x80070002/updateerror0x80070002-fileexplorer.png" alt-text="Empty directory in Windows Explorer":::
38
44
39
-
### Symptom 2: Update Installation Failure
45
+
### Resolution: Registry Key Deletion
40
46
41
-
If you encounter error 0x80070002 during update installation, review the CBS.log for entries like the following:
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)
45
-
```
51
+
:::image type="content" source="./media/troubleshoot-windows-update-error-0x80070002/updateerror0x80070002-registryhklm.png" alt-text="Registry keys for clr_optimization":::
46
52
47
-
Verify the existence of the folder `C:\ProgramData\Microsoft\Windows\Start Menu\Programs\System Tools`.
53
+
2. Back up and delete these registry keys.
54
+
3. Attempt to install the update again.
48
55
49
-
###Symptom 3: Missing DLLs in C:\Windows\WinSxS
56
+
## Symptom 2: Update Installation Failure
50
57
51
-
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`.
58
+
If you encounter error 0x80070002 during update installation, review the CBS.log for entries like the following:
52
59
53
60
```output
54
-
Info CBS Failed to find file: x86_microsoft-windows-directwrite_31bf3856ad364e35_7.1.7601.23545_none_229deeb1ba2a85d3DWrite.dll [HRESULT = 0x80070002 - ERROR_FILE_NOT_FOUND]
61
+
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)
55
62
```
56
63
57
-
### Symptom 4: Cumulative Update Rollback
64
+
Verify the existence of the folder `C:\ProgramData\Microsoft\Windows\Start Menu\Programs\System Tools`.
58
65
59
-
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.
66
+
### Resolution: Copy Missing Folders
60
67
61
-
```output
62
-
Info CBS INSTALL index: 55, phase: 2, result 2, inf: flpydisk.inf
63
-
Info CBS Doqe: Failed installing driver updates [HRESULT = 0x80070002 - ERROR_FILE_NOT_FOUND]
64
-
```
68
+
Copy the folder "System Tools" from a working machine to the affected machine, ensuring all shortcuts are included.
65
69
66
-
###Symptom 5: Windows Upgrade Failure
70
+
## Symptom 3: Missing DLLs in C:\Windows\WinSxS
67
71
68
-
For Windows upgrade failures with error 0x80070002, examine the Setupact.log for issues related to mounting WIM files.
72
+
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`.
69
73
70
74
```output
71
-
Warning SP Failed to get WimMount ImagePath, 0x80070002
72
-
Error SP CMountWIM::DoExecute: Failed to mount WIM file C:\$WINDOWS.~BT\Sources\SafeOS\winre.wim. Error 0xC1420121[gle=0xc1420121]
75
+
Info CBS Failed to find file: x86_microsoft-windows-directwrite_31bf3856ad364e35_7.1.7601.23545_none_229deeb1ba2a85d3DWrite.dll [HRESULT = 0x80070002 - ERROR_FILE_NOT_FOUND]
73
76
```
74
77
75
-
## Root Cause for Windows Update Error 0x80070002
76
-
77
-
The error 0x80070002 is primarily caused by missing or corrupt files necessary for the update process. This can occur due to:
78
-
79
-
- Incomplete previous updates that left the system in an inconsistent state.
80
-
- Missing DLLs or system files in critical directories.
81
-
- Registry entries pointing to non-existent services or files.
3. Run the following command to check for corruptions:
114
-
```bash
93
+
94
+
```console
115
95
DISM.exe /Online /Cleanup-image /Restorehealth
116
96
```
117
97
118
98
4. Download and install the standalone package for the Monthly Rollup from the [Microsoft Update Catalog](https://www.catalog.update.microsoft.com/Home.aspx).
119
99
120
-
### Mitigation 4: Import Registry Keys
100
+
## Symptom 4: Cumulative Update Rollback
101
+
102
+
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.
103
+
104
+
```output
105
+
Info CBS INSTALL index: 55, phase: 2, result 2, inf: flpydisk.inf
106
+
Info CBS Doqe: Failed installing driver updates [HRESULT = 0x80070002 - ERROR_FILE_NOT_FOUND]
107
+
```
108
+
109
+
### Resolution: Import Registry Keys
121
110
122
111
Export and import the following registry keys from a working machine:
123
112
@@ -126,7 +115,16 @@ Export and import the following registry keys from a working machine:
126
115
2. HKLM\System\CurrentControlSet\Services\sfloppy
127
116
```
128
117
129
-
### Mitigation 5: Restore WIMMOUNT.sys
118
+
## Symptom 5: Windows Upgrade Failure
119
+
120
+
For Windows upgrade failures with error 0x80070002, examine the Setupact.log for issues related to mounting WIM files.
121
+
122
+
```output
123
+
Warning SP Failed to get WimMount ImagePath, 0x80070002
124
+
Error SP CMountWIM::DoExecute: Failed to mount WIM file C:\$WINDOWS.~BT\Sources\SafeOS\winre.wim. Error 0xC1420121[gle=0xc1420121]
125
+
```
126
+
127
+
### Resolution: Restore WIMMOUNT.sys
130
128
131
129
Export `WIMMOUNT.sys` from the registry of a working server and merge it on the affected server.
0 commit comments