When you use the Microsoft Systems Management Server (SMS) 2003 Inventory Tool for Microsoft Updates (ITMU) to scan for updates, ITMU may not run on some client computers. Additionally, you may receive error messages that resemble the following in the SMS log files:
AddScanPackageService() failed.ERROR: Search() failed with hRes=0x800401540x80004002 is the hresult value for the operation. Returning 16386 as the exit code.
ERROR: An error was encountered. Exiting Scan process ...
FATAL: Failed to get agent interface pointers, hr=80040154
The problem occurs because one or more of the required .dll files that Windows Update uses are not correctly registered.
To resolve this problem, manually register the Windows Update and XML .dll files on the client computer. To do this, type the following commands at a command prompt. Press ENTER after you type each command.
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.
When the SMS 2003 ITMU is installed, ITMU creates a package and a program that runs WindowsUpdateAgent20-x86.exe /q on the client computers before the package and program runs ScanWrapper.exe. ITMU gives the package and program a name that resembles "Windows Update Agent."
If you run WindowsUpdateAgent20-x86.exe /q on a client computer, Windows Update does not reregister the .dll files that have the same file versions that are already present on the client computer.
To prevent the client computers from displaying the problem that this article discusses, you can force Windows Update to reregister the required .dll files. To do this, add the /f switch to the SMS program command line. For example, add the /f switch so that the command line appears as the following: