We have a set of HyperV servers which are managed by SCVMM and periodically need to be updated. SCVMM is also connected to an SCCM/WSUS server which deploys the updates to the machines.
However when trying to apply the updates using the remediation process of SCVMM most of the machines even though they appear as non compliant fail to update and display error 80240022 in SCVMM. Checking at the Windows update log which is created running the Get-WindowsUpdateLog command in powershell during the process many errors occur (including the number reported in SCVMM). I can attach the log if needed , examples
FAILED [80246007] Method failed [CAgentUpdateManager::InstallUpdate:11739]
FAILED [8024000C] LoadHistoryEventFromRegistry completed
FAILED [80240013] m_services.Add()
Manually checking for updates and installing also does not work with similar results.
Updating through the SCCM software center seems to work but this is not desirable because SCVMM remediation cannnot be automated by this way.
However I discovered that in case I delete the following key in the registry
Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate UpdateServiceUrlAlternate [http://localhost:8005]
the process completes succesfully. This seems to be an option that SCCM using using in order to deploy and its update packages.
So the question is :
Is there a way to deploy the updates using SCCM and then SCVMM uses them to remediate? Or is there a way to bypass SCCM updates for the Machines that SCVMM updates?