Ask the Community
Groups
Patch Scan fails with error "Scan error - Operating system not determined" - Connect IT Community | Kaseya
<main> <article class="userContent"> <p>KB#: KKB000698</p> <p>Question<br>Why is the Patch Scan for machine failing?<br><br>Under Patch Status it shows the following error: "Scan error - Operating system not determined".<br><br>Script log contains the following error reported by the "Legacy Patch Scan" script: -<br><br>FAILED in processing THEN step 11, Execute Agent DLL Function, with error Spawn Failed, DLL = c:\temp\kPtchMgt.dll, Arguments = -v -m "c:\temp\mssecure.xml" -k "c:\temp\odt\kptchdat.xml" -d "c:\temp\odtscan.xml" -o "c:\temp\patchscn.xml"<br><br>Answer<br><br>When a Patch Scan is run for the first time on a machine, a legacy scan is run to detect patches from prior to October 2007 when Microsoft changed their update detection methods. The legacy scan engine uses MSXML4 SP2.<br><br>The "Spawn Failed" error is almost always a MSXML COM failure.<br><br><br>This issue can normally be resolved by reinstalling the MSXML 4.0 : -<br><br>1) using "Add/Remove Programs" on the machine, remove all applications shown for "MSXML 4.0 SP2"<br>2) in the %windir%\system32 directory, delete the following files: -<br>msxml4.dll<br>msxml4a.dll<br>msxml4r.dll<br>3) delete the following registry key: HKEY_CLASSES_ROOT\Msxml2.DOMDocument.4.0\CLSID.<br>4) download msxml.msi from this Microsoft page and save to the computer - <a href="/home/leaving?allowTrusted=1&target=http%3A%2F%2Fwww.microsoft.com%2Fdownloads%2Fdetails.aspx%3Ffamilyid%3D3144b72b-b4f2-46da-b4b6-c5d7485f2b42%26displaylang%3Den">http://www.microsoft.com/downloads/details.aspx?familyid=3144b72b-b4f2-46da-b4b6-c5d7485f2b42&displaylang=en</a><br>5) from a command prompt, run msiexec /i "\msxml.msi"<br><br>After successfully installed, rerun the patch scan.<br><br>More Information<br><br>Applies To<br>Kaseya Patch Management (all versions)<br>Microsoft MSXML 4.0 Service Pack 2 (Microsoft XML Core Services)</p> </article> </main>