Skip to content

Reset-WindowsUpdateSettings.ps1 will cause UpdateServiceUrlAlternate to not exist #11

@MHimken

Description

@MHimken

The platform script Reset-WindowsUpdateSettings.ps1 will remove the registry.pol of a device, unless otherwise specified. However, CCMExec will not restore this value quickly (and in some cases apparently never), causing UUP Updates through Delivery Optimization to stop working (0% download until timeout).

Default value: http://localhost:8005/
Path: Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate
Type: REG_SZ
Name: UpdateServiceUrlAlternate

Remediation:
Since the port can be customized, we need to check a couple of things.
a) is the machine CM managed?
b) is the key already set? If yes, record if the default port was used, if not save the port
c) run the rest of the cleanup and restore the key with the correct port or the default port
d) (optional) since the key is required for W11 updates, this key can be created if it didn't exist before.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions