Microsoft KB Archive/296706

= WMI .mof Files Do Not Compile When Include Directives Use Relative Paths =

Article ID: 296706

Article Last Modified on 10/25/2006

-

APPLIES TO


 * Microsoft Windows Management Instrumentation 1.5, when used with:
 * Microsoft Windows 2000 Standard Edition

-



This article was previously published under Q296706



SYMPTOMS
A Windows Management Instrumentation (WMI) .mof file may fail to successfully compile when it has an #include directive with a relative path specified. This issue affects .mof files that are compiled manually with the Mofcomp tool (Mofcomp.exe), and .mof files that are compiled automatically as part of the WMI automatic recovery process.



CAUSE
The .mof compiler dynamic link library (Mofd.dll) does not properly handle relative paths. When an #include directive with a relative path is encountered, the compiler uses the process current folder setting instead of the path of the parent .mof to arrive at the included file's absolute path.



RESOLUTION
To resolve this problem, obtain the latest service pack for Windows 2000. For additional information, click the following article number to view the article in the Microsoft Knowledge Base:

260910 How to Obtain the Latest Windows 2000 Service Pack

The English version of this fix should have the following file attributes or later:

  Date         Time      Version       Size     File name  Platform -  01-Jun-2001  18:32:32  1.50.1085.58  139,332  Mofd.dll   Intel

Using the Hotfix Installer
NOTE: You can use this method only for Intel-based computers with Windows 2000 installed.
 * 1) Copy the hotfix program file (Q296706.exe) to a local folder on your computer or to a share on your network.
 * 2) Run the Q296706.exe file, and then follow the directions you receive.
 * 3) Restart your computer.



STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article. This problem was first corrected in Windows 2000 Service Pack 3.



MORE INFORMATION
For additional information about how to install Windows 2000 and Windows 2000 hotfixes at the same time, click the article number below to view the article in the Microsoft Knowledge Base:

249149 Installing Microsoft Windows 2000 and Windows 2000 Hotfixes

Additional query words: kbMgmtAdmin managed object format

Keywords: kbhotfixserver kbqfe kbbug kbenv kbfix kbsysadmin kbwin2000presp3fix kbwin2000sp3fix KB296706

-

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

© Microsoft Corporation. All rights reserved.