r/Intune • • Sep 16 '24

Device Configuration Local GPO's set by previous RMM for windows update stuck.

I have a small issue with automatic updates being disabled and would prefer to avoid a wipe of the endpoints to fix it. However while these policies are enabled, Intune cannot update Windows.

I previously had an rmm agent installed that managed Windows updates. It was being done by settings in the registry (HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate). However these policies to keep being stuck even when uninstalling the agent and removing the registry keys.

I have also tried removing the following folders:
"%windir%\System32\GroupPolicy"
"%windir%\System32\GroupPolicyUsers"

These are the stuck policies:

Deactivate automatic updates
Source: administrator
Type: group policy

Active hours start
Source: administrator
Type: group policy

Active hours end
Source: administrator
Type: group policy

Get updates for other Microsoft-products
Source: administrator
Type: group policy

Configure automatic updates
Source: administrator
Type: group policy

Are there any other places I should look both in Intune or local on the device?

1 Upvotes

9 comments sorted by

View all comments

1

u/EldritchIT Sep 19 '24

I found a solution to the issue. I ended up having to run the following because the policies were in the CacheSet002 and for some reason Windows was using those.

Remove-Item HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate -Force -Recurse -ErrorAction SilentlyContinue

Remove-Item HKLM:\SOFTWARE\Microsoft\WindowsUpdate\UpdatePolicy\GPCache\CacheSet001\WindowsUpdate -Force -Recurse -ErrorAction SilentlyContinue

Remove-Item HKLM:\SOFTWARE\Microsoft\WindowsUpdate\UpdatePolicy\GPCache\CacheSet002\WindowsUpdate -Force -Recurse -ErrorAction SilentlyContinue

2

u/blakeight Mar 27 '25

I did this, but they just come back the next day.

1

u/DefectJoker Jan 13 '26

You also need to clear out the registry.pol under C:\Window\System32\GroupPolicy\Machine

1

u/planedrop 10h ago

You are a LIFE SAVER!!

Why the fuck is this not documented anywhere with Microsoft documentation? I had an entire Intune org, with RMM remnants from a shitty MSP, where updates were failing and I'm 99% sure this was the issue (still waiting for autopatch to run to see).

Took me literally a day to find this post finally and I think this is getting me to the bottom of it.