I have at least one client machine which is occasionally returning an exit code of 4 after the assessment scan. The scan always runs as system so it seems odd that sometimes it works and sometimes not. I looked in the client logs and found this:
<event date="Apr 16 16:00:31" severity="1" hostName="WEBSERVER3-DEV" source="Utils::ComException::ComException" module="AexPatchAssessment.exe" process="AexPatchAssessment.exe" pid="5028" thread="1484" tickCount="419828156"><![CDATA[HR=0x80080005, MSG='Shavlik::ShavlikPatchAssessmentImpl::OnInitialize()- Couldn't create Shavlik COM engine']]></event>
This looks suspiciously like the culprit but I am not sure where to go with trying to make this more reliable. Any suggestions? The client in question is running Windows 2008 R2 Standard.