Windows update and WSUS registry configuration randomly deleted from domain clients

MRK001 1 Reputation point
2022-12-29T08:47:33.277+00:00

I'm the sysadmin in a small company with around 70 domain computers all running Windows 10 22H2 (but it happened ever since we migrated to W10 3 years ago). We have implemented WSUS a long time ago and we are managing updates using it. Since about a couple of years ago I'm facing an issue I cannot figure out. There is something that deletes the HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate registry key and all values, so the client will no longer report to WSUS and instead update randomly through the internet.

Every now and then, I see that some computers no longer communicate with WSUS for updates, and show up as not having sent a report in a long time. When I catch them like that I can "fix" them by doing a gpupdate /force and then checking for updates, this will restore the registry keys set by the Windows Update policies. Most of the time though, I don't catch them and later on the user comes to me saying that their computer randomly updated to Windows 11 overnight or that it installed bios updates, and other things like that. I don't need to tell you how annoying and disruptive for the user's workflow it is to have the operating system updated for no reason, or the bios (on our DELL laptop, updating the bios takes literally 20 minutes and sometimes it messes with Bitlocker so they have to come to me for the Bitlocker recovery keys).

Anyway, I found a couple of posts with the same issue, one is here:
https://social.technet.microsoft.com/Forums/windows/en-US/d98fb3a1-1e6d-4f1d-a5ca-b66a98e02550/hkeylocalmachinesoftwarepoliciesmicrosoftwindowswindowsupdateau-missing-after-restart?forum=winserverwsus
Another one:
https://community.spiceworks.com/topic/2027489-wsus-registry-keys-randomly-removed-from-domain-laptop#

Unfortunately none of them contain any solution or useful information, but the isssue is literally the same as those guys'.

I have literally no idea what could be causing this, and lately it has been happening over and over on random laptops and desktops all over the company. I swear every week I have some random colleague waiting for me in the morning because their computer is locked by bitlocker due to a random bios update, or telling me how cool is Windows 11 but we should have informed them the update was coming, or some other bs like that. Hell it even happened on my own desktop workstation and I have literally no idea wtf caused it because during the holidays I was alone in the company running backups and fixing stuff, so all I was doing on the computer was browsing the internet, I didn't touch the servers, I didn't install anything, I only turned on my computer to pass the time while backups were running, and out of nowhere I had a bios update queued after reboot and a notification about installing Windows 11.

I really hope someone can help me because this thing is driving me insane. Thanks in advance.

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,180 questions
{count} votes

8 answers

Sort by: Most helpful
  1. Adam J. Marshall 8,706 Reputation points MVP
    2022-12-30T05:36:32.047+00:00

    Since they are getting the result when you do a gpupdate /force you likely have an RMM software on the clients that is overwriting group policy.

    https://www.ajtek.ca/wsus/client-machines-not-reporting-to-wsus-properly/#RMM

    You can work through the rest of the page for troubleshooting, but I'm pretty sure it's the RMM software.

    0 comments No comments

  2. Adam J. Marshall 8,706 Reputation points MVP
    2022-12-30T05:37:51.87+00:00

    Oh, and the random updates to Windows 11 - likely a Dual Scan scenario

    https://www.ajtek.ca/wsus/dual-scan-making-sense-of-why-so-many-admins-have-issues/

    I'd recommend reading through other guides of mine as they relate mostly to WSUS.

    0 comments No comments

  3. MRK001 1 Reputation point
    2022-12-30T09:52:36.973+00:00

    Hello and thanks for answering. I am sure I do not have any RMM software installed on my PC. I would also exclude that users installed one without me knowing, because it also happened to users who do not have admin privileges on their computer.

    About the rsop.msc thing, do you think that I have two conflicting sets of policies?
    I ran it and all looks good on my end.
    My configuration is as follows.

    275091-policy.png

    0 comments No comments

  4. Adam J. Marshall 8,706 Reputation points MVP
    2022-12-30T21:27:33.61+00:00

    That doesn't give the required info

    From an Administrative Command Prompt on an affected client, run the following:
    gpresult /h gpo.htm
    and share the result with your favourite method or pastebin it so that we can see it.

    Also, screenshot add/remove programs on that client system. I'm quite confident it's an issue with RMM software as they appear when you run gpupdate /force but soon after disappear. Unless you have some strange scheduled task that's doing it, it's 98% of the time RMM Software, 1% AV software acting as an RMM/enforcing policies, and 1% other.

    0 comments No comments

  5. MRK001 1 Reputation point
    2023-01-09T10:10:50.707+00:00

    Hello. Took me a few days to reply because I was on vacation. I have anonymized the gpo.htm file a bit, and you can find it here (change the extension) [277815-gpo.txt][1] This is the application list from an affected machine.

    Annotation 2023-01-10 102304

    Annotation 2023-01-10 102323

    Also, I was wondering, if I set up a scheduled task through GPO that runs a gpupdate /force a couple of times every day, even though it's not a solution but only a band-aid, would that prevent it from happening, at least until I figure out what's deleting my registry keys? Running gpupdate /force on any affected client fixes the issue and restores all the missing registry keys immediately no question asked.

    0 comments No comments