To Get Targeted Update Error 0x87d00215: Failed

sc stop sysmain
sc config sysmain start=disabled

Reboot, test the update, then re-enable with sc config sysmain start=auto if resolved.

Open PowerShell as Administrator:

$WindowsUpdatePath = "HKLM:SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate"
Remove-ItemProperty -Path $WindowsUpdatePath -Name "TargetReleaseVersion" -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $WindowsUpdatePath -Name "TargetReleaseVersionInfo" -ErrorAction SilentlyContinue
Restart-Service wuauserv, bits, cryptSvc

Note: Your update history will be cleared, but that’s harmless. Windows will rebuild the folders fresh. Failed To Get Targeted Update Error 0x87d00215

To minimize the recurrence of error 0x87d00215: sc stop sysmain sc config sysmain start=disabled

If the policy retrieval fails, clear the local update store to force a fresh scan. Reboot, test the update, then re-enable with sc