Winhance icon indicating copy to clipboard operation
Winhance copied to clipboard

[BUG] Wrong values set for " SetUpdateNotificationLevel "

Open rsoyxihnark opened this issue 5 months ago • 2 comments

Please confirm these before moving forward

  • [x] I have searched for my issue and have not found a similiar in the Open or Closed issues.
  • [x] I have tested that this issue has not been fixed in the latest (beta or stable) release.
  • [x] I have checked the Discussions section for solutions.
  • [x] This issue is about a bug (if it is not, please use the correct template).

Winhance Version

v26.06.12

Windows version, edition, and architecture

26200.8728

Describe your issue

Source: https://learn.microsoft.com/en-us/windows/client-management/mdm/policy-csp-update

SetUpdateNotificationLevel 0 (Default) | Use the default Windows Update notifications. 1 | Turn off all notifications, excluding restart warnings. 2 | Turn off all notifications, including restart warnings.

Image

Steps to reproduce the issue

Expected behavior

"Update Notifications - Show or hide notifications about available updates and update progress" toggle.

Enabling it sets SetUpdateNotificationLevel to 2.

However 2 is actually disabling notifications.

Actual behavior

Screenshots or Logs (if applicable)

Image

Additional context

No response

rsoyxihnark avatar Jun 17 '26 10:06 rsoyxihnark

Noted, will look into this

memstechtips avatar Jun 23 '26 08:06 memstechtips

Hey @rsoyxihnark,

You were right that this was writing the wrong thing, and the 0/1/2 values you quoted are correct — they just belong to a different registry value than the one we were writing to. SetUpdateNotificationLevel is the policy's on/off flag (1 = enabled, 0 = disabled); the actual 0/1/2 level lives in a separate value called UpdateNotificationLevel. So writing 2 into the flag produced a policy that reads as configured but doesn't suppress anything, which is why the setting never really worked either way. The labels were backwards on top of that.

It's now a three-option dropdown — show all notifications, hide everything except restart warnings, or hide everything — writing both values the way the Group Policy template defines them. The policy is machine-scoped, so the HKCU copy is gone too, and choosing "show all" clears the leftover value that older versions wrote.

Thanks for digging into the actual registry values rather than just reporting the symptom, it made this much easier to pin down.

This will be available for testing in Release 28.

Drafted and approved by @memstechtips - Sent by Memory's Agent

memory-agent avatar Aug 12 '26 11:08 memory-agent