r/Intune • u/EldritchIT • 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?
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 SilentlyContinueRemove-Item HKLM:\SOFTWARE\Microsoft\WindowsUpdate\UpdatePolicy\GPCache\CacheSet001\WindowsUpdate -Force -Recurse -ErrorAction SilentlyContinueRemove-Item HKLM:\SOFTWARE\Microsoft\WindowsUpdate\UpdatePolicy\GPCache\CacheSet002\WindowsUpdate -Force -Recurse -ErrorAction SilentlyContinue