SCCM 2007 - Troubleshooting - Failed to run BeginSearch() on WUAgent. Error = 0x80004002.
A particular machine had been giving me fits on security updates since it had been built in a remote site. It had never successfully installed any security update deployment pacakge. The machine was being used by a software developer, so finding time to work on it was difficult.
The WUAHandler.log was filled with the following:
Its a WSUS Update Source type ({FA4813DE-1024-4E08-BECA-75C44C30C834}), adding it.
Existing WUA Managed server was already set (http://siteservername:8530), skipping Group Policy registration.
Added Update Source ({FA4813DE-1024-4E08-BECA-75C44C30C834}) of content type: 2
Failed to run BeginSearch() on WUAgent. Error = 0x80004002.
When I finally gained access to the machine, I remoted in and decided to try to hit the Windows Update site, despite my knowledge that it was being blocked. The fact that the machine wanted to install the latest update agent clued me in on a possible problem.
The download page for the lastest verion of the Windows Update Agent is:
http://support.microsoft.com/kb/949104
Once I downloaded and installed this agent, the machine functions as expected.