Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

PowerShell setup gets stuck on windows update registration when WU Service data base is corrupt #17899

Copy link
Copy link
@agowa

Description

@agowa
Issue body actions

Prerequisites

Recommendation by @TravisEz13

We should see if we can run this async and fail if it hasn't completed after about 5 minutes.

Steps to reproduce

  1. Update via winget to the latest version

Expected behavior

update completing

Actual behavior

Setup getting stuck with "Time remaining: 2 seconds"

According to task manager it gets stuck on a call to pwsh with this command line:
"C:\Program Files\PowerShell\7\pwsh.exe" -NoProfile -ExecutionPolicy Bypass -Command "$null=(New-Object -ComObject Microsoft.Update.ServiceManager).AddService2('7971f918-a847-4430-9279-4a52d1efe18d', 7, '')"

Environment data

Name                           Value
----                           -----
PSVersion                      7.2.6
PSEdition                      Core
GitCommitId                    7.2.6
OS                             Microsoft Windows 10.0.25179
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

OS Data

Version    Caption
-------    -------
10.0.25179 Microsoft Windows 11 Pro for Workstations Insider Preview

Windows update log

Getting the list of all ETL files...

Please wait for all of conversions to complete...


================ Results from WULog_0 ================\user. [1/1 Complete:                                         ]

Input
----------------
File(s):
     C:\Windows\Logs\WindowsUpdate\WindowsUpdate.20220813.042052.492.1.etl
     C:\Windows\Logs\WindowsUpdate\WindowsUpdate.20220813.042052.492.2.etl

100.00%

Output
----------------
DumpFile:           C:\Users\user\AppData\Local\Temp\WindowsUpdateLog\wuetl.XML.tmp.518f4757-ea66-47c5-b83c-4cb5f1667b3d.00000
Warning:
Some events do not match the schema.
Please rerun the command with -lr to get less restricted XML dump
The command completed successfully.

==================================================


WindowsUpdate.log written to C:\Users\user\Desktop\WindowsUpdate.log

Visuals

image

Reactions are currently unavailable

Metadata

Metadata

Assignees

Labels

Issue-BugIssue has been identified as a bug in the productIssue has been identified as a bug in the productResolution-FixedThe issue is fixed.The issue is fixed.WG-Maintainers-Buildspecific to affecting the buildspecific to affecting the build

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.