Skip to content

Commit e1cbb68

Browse files
committed
update
1 parent 3c8ef80 commit e1cbb68

1 file changed

Lines changed: 28 additions & 7 deletions

File tree

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

Lines changed: 28 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,12 @@ Info CBS Failed to find file: x86_microsoft-windows-directwrite_31bf3856ad364e35
8585
```console
8686
takeown /f c:\windows\winsxs
8787
icacls c:\windows\winsxs /grant administrators:F
88-
cd c:\windows\winsxs
88+
cd c:\windows\winsxs
89+
```
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_c67f532e01cd149d.dll is missing, run the following command:
92+
93+
```console
8994
mkdir x86_microsoft-windows-directwrite_31bf3856ad364e35_7.1.7601.23545_none_c67f532e01cd149d
9095
```
9196

@@ -101,19 +106,35 @@ Info CBS Failed to find file: x86_microsoft-windows-directwrite_31bf3856ad364e35
101106

102107
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.
103108

109+
Here is a sample of the event log:
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).
122+
123+
The failure is caused by an issue during update drivers operation. For example, the following CBS.log indicates the driver flpydisk.inf is the cause:
124+
104125
```output
105126
Info CBS INSTALL index: 55, phase: 2, result 2, inf: flpydisk.inf
106127
Info CBS Doqe: Failed installing driver updates [HRESULT = 0x80070002 - ERROR_FILE_NOT_FOUND]
107128
```
108129

109130
### Resolution: Import registry keys
110131

111-
Export and import the following registry keys from a working machine:
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.
112133

113-
```bash
114-
1. HKLM\System\CurrentControlSet\Services\flpydisk
115-
2. HKLM\System\CurrentControlSet\Services\sfloppy
116-
```
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.
135+
136+
1. `HKLM\System\CurrentControlSet\Services\flpydisk`
137+
2. `HKLM\System\CurrentControlSet\Services\sfloppy`
117138

118139
## Symptom 5: Windows upgrade failure
119140

@@ -126,7 +147,7 @@ Error SP CMountWIM::DoExecute: Failed to mount WIM file C:\$WINDOWS.~BT\Sources\
126147

127148
### Resolution: Restore WIMMOUNT.sys
128149

129-
Export `WIMMOUNT.sys` from the registry of a working server and merge it on the affected server.
150+
Export `WIMMOUNT.sys` from the location `%SystemRoot%\system32\drivers\wimmount.sys` and the registry: `HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Wimmount` on a working server. Then, merge them on the affected server.
130151

131152
## Next steps
132153

0 commit comments

Comments
 (0)