When viewing the server health of a Presentation Server 4.5 server in Citrix Access Management Console the following error is reported:
"The WMI provider namespace cannot be found on server 'SERVER'. (Message: Invalid namespace Error: 0x8004100E)"
The following is also seen in the Application event log:
Source: WSH
Event ID: 1
Citrix Monitoring Script Event 2
Citrix MetaFrame Session In Down State:
WMI error retrieving session object:
Received error: 0x8004100e: Invalid namespace [WBEM_E_INVALID_NAMESPACE]
Repairing the Citrix installation does not resolve the issue.
If you receive this error you will need to recompile one or more of your Citrix .MOF files. A .MOF (Managed Object Format) file is the mechanism by which information about WMI classes is entered into the WMI Repository. It is possible that the class definitions currently in the Repository have somehow become corrupted; in that case, recompiling your .MOF files will cause those class definitions to be overwritten and replaced with the same, uncorrupted class definitions used when the operating system was originally installed.
To recompile all Citrix .MOF files enter the following commands in a command prompt:
C:
CD "C:\Program Files\Citrix\System32\Citrix\WMI"
for %i in (*.mof, *.mfl) do Mofcomp %i
It may also be necessary to restart the Windows Management Instrumentation Driver Extensions service, which will restart the following services:
- Citrix ADF Installer Service
- Citrix Client Network
- Citrix Encryption Service
- Citrix Independent Management Architecture
- Citrix MFCOM Service
- Citrix XML Service