Microsoft KB Archive/237495

= SMS: Err Msg: ERROR 2 Failed to Run MofComp =

Article ID: 237495

Article Last Modified on 10/27/2006

-

APPLIES TO


 * Microsoft Systems Management Server 2.0 Standard Edition

-



This article was previously published under Q237495



SYMPTOMS
When you modify the default Sms_def.mof file that comes with Systems Management Server 2.0 Service Pack 1, you may not be able to compile the MOF on the client computer during a hardware inventory cycle. The Hinv32.log file contains any of the following error messages:

ERROR 2 - Failed to run MofComp !

or

Error Syntax 0X007F



CAUSE
This issue occurs because the MOF Manager tool (Mofman.exe) inserts 8 blank classes at the top of the Sms_def.mof file when you save it. When the Hardware Inventory Agent on the client computer attempts to compile the new Sms_def.mof file, it fails because of the blank classes.



WORKAROUND
WARNING: The Sms_def.mof file located on the site server is the source for hardware inventory data to query on all clients in the site. You need to be careful when you edit this file.

To avoid this problem, use Notepad to make changes to the Sms_def.mof file instead of the MOF Manager tool. To do this, follow these steps:  Open the \SMS\Inboxes\Clifiles.Src\Hinv folder on the site server. Use Notepad to open the Sms_def.mof file.  Find the section at the top of the file which looks like the following text: //================================================================== // Register SMS CIMV2 Provider //==================================================================


 * 1) pragma namespace ("\\\\.\\root\\cimv2\\SMS")

[SMS_Report(FALSE), SMS_Group_Name(""), SMS_Class_ID("")] class { };                     The following lines should appear eight times in this section. Delete these lines. [SMS_Report(FALSE), SMS_Group_Name(""), SMS_Class_ID("")] class { };                    Save the SMS_Def.MOF using Notepad. Do not add the .txt extension to the file name when you save the file.

<div class="status_section">

STATUS
Microsoft has confirmed this to be a problem in Systems Management Server version 2.0.

Additional query words: prodsms SMS20POSTSP1 smsfaqtop

Keywords: kbbug kbenv kbpending KB237495

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.