Skip to content

Commit 0b9b6c0

Browse files
committed
add contextual toc
1 parent 4ac3892 commit 0b9b6c0

3 files changed

Lines changed: 60 additions & 56 deletions

File tree

support/azure/virtual-machines/windows/breadcrumb/toc.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,3 +63,6 @@
6363
- name: Virtual Machine running Windows
6464
tocHref: /troubleshoot/windows-server/deployment/
6565
topicHref: /troubleshoot/azure/virtual-machines/windows/welcome-virtual-machines-windows
66+
- name: Windows Update and OS Upgrades
67+
tocHref: /troubleshoot/windows-server/installing-updates-features-roles/
68+
topicHref: /troubleshoot/azure/virtual-machines/windows/welcome-virtual-machines-windows

support/azure/virtual-machines/windows/toc.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,10 @@
224224
href: in-place-system-upgrade.md
225225
- name: Upgrade VM to contain more than 64 vCPUs
226226
href: vm-cannot-upgrade-64-vcpu.md
227-
227+
- name: Known errors and issues
228+
items:
229+
- name: Troubleshoot Windows Update Error 0x80070002
230+
href: ../../../windows-server/installing-updates-features-roles/troubleshoot-windows-update-error-0x80070002.md?context=/troubleshoot/azure/virtual-machines/windows/context/context
228231
- name: My VM is not booting
229232
items:
230233
- name: Boot diagnostics

support/windows-server/installing-updates-features-roles/troubleshoot-windows-update-error-0x80070002.md

Lines changed: 53 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,28 @@ audience: itpro
77
ms.topic: troubleshooting
88
ms.reviewer: scotro,mwesley
99
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
1212
---
1313
# Troubleshoot Windows Update Error 0x80070002
1414

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.
1616

1717
:::image type="content" source="./media/troubleshoot-windows-update-error-0x80070002/updateerror0x80070002-wusaerror.png" alt-text="Windows Update error 0x80070002 message":::
1818

1919
## Prerequisites
2020

21-
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.
2222

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.
2430

25-
### Symptom 1: Security Monthly Rollup Installation Failure
31+
## Symptom 1: Security Monthly Rollup Installation Failure
2632

2733
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.
2834

@@ -36,88 +42,71 @@ Check the directory `C:\Windows\Microsoft.NET\Framework\v4.0.30319` to confirm i
3642

3743
:::image type="content" source="./media/troubleshoot-windows-update-error-0x80070002/updateerror0x80070002-fileexplorer.png" alt-text="Empty directory in Windows Explorer":::
3844

39-
### Symptom 2: Update Installation Failure
45+
### Resolution: Registry Key Deletion
4046

41-
If you encounter error 0x80070002 during update installation, review the CBS.log for entries like the following:
47+
1. Navigate to the following registry locations:
48+
- `HKLM\System\CurrentControlSet\services\clr_optimization_v4.0.30319_32`
49+
- `HKLM\System\CurrentControlSet\services\clr_optimization_v4.0.30319_64`
4250

43-
```output
44-
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":::
4652

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.
4855

49-
### Symptom 3: Missing DLLs in C:\Windows\WinSxS
56+
## Symptom 2: Update Installation Failure
5057

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:
5259

5360
```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)
5562
```
5663

57-
### Symptom 4: Cumulative Update Rollback
64+
Verify the existence of the folder `C:\ProgramData\Microsoft\Windows\Start Menu\Programs\System Tools`.
5865

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
6067

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.
6569

66-
### Symptom 5: Windows Upgrade Failure
70+
## Symptom 3: Missing DLLs in C:\Windows\WinSxS
6771

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`.
6973

7074
```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]
7376
```
7477

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.
82-
83-
## Resolution or Troubleshooting Steps
84-
85-
### Mitigation 1: Registry Key Deletion
86-
87-
1. Navigate to the following registry locations:
88-
- `HKLM\System\CurrentControlSet\services\clr_optimization_v4.0.30319_32`
89-
- `HKLM\System\CurrentControlSet\services\clr_optimization_v4.0.30319_64`
90-
91-
:::image type="content" source="./media/troubleshoot-windows-update-error-0x80070002/updateerror0x80070002-registryhklm.png" alt-text="Registry keys for clr_optimization":::
92-
93-
2. Back up and delete these registry keys.
94-
3. Attempt to install the update again.
95-
96-
### Mitigation 2: Copy Missing Folders
97-
98-
Copy the folder "System Tools" from a working machine to the affected machine, ensuring all shortcuts are included.
99-
100-
### Mitigation 3: Restore Missing DLLs
78+
### Resolution: Restore Missing DLLs
10179

10280
1. Identify missing DLLs from the CBS logs.
10381
2. Source these files from a working server and place them in the correct directories.
10482

10583
**Commands:**
106-
```bash
84+
85+
```console
10786
takeown /f c:\windows\winsxs
10887
icacls c:\windows\winsxs /grant administrators:F
10988
cd c:\windows\winsxs
11089
mkdir x86_microsoft-windows-directwrite_31bf3856ad364e35_7.1.7601.23545_none_c67f532e01cd149d
11190
```
11291

11392
3. Run the following command to check for corruptions:
114-
```bash
93+
94+
```console
11595
DISM.exe /Online /Cleanup-image /Restorehealth
11696
```
11797

11898
4. Download and install the standalone package for the Monthly Rollup from the [Microsoft Update Catalog](https://www.catalog.update.microsoft.com/Home.aspx).
11999

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
121110

122111
Export and import the following registry keys from a working machine:
123112

@@ -126,7 +115,16 @@ Export and import the following registry keys from a working machine:
126115
2. HKLM\System\CurrentControlSet\Services\sfloppy
127116
```
128117

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
130128

131129
Export `WIMMOUNT.sys` from the registry of a working server and merge it on the affected server.
132130

0 commit comments

Comments
 (0)