Wednesday, January 12, 2011

The WMI provider namespace cannot be found on server 'SERVER'. (Message: Invalid namespace Error: 0x8004100E)

The WMI provider namespace cannot be found" WBEM_E_INVALID_NAMESPACE 0x8004100e Error on Citrix


Issue : 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.

Resolution :   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
 

Please save the below code as a batch file and run it on the victim server.

"net stop winmgmt /y
z:
cd %systemroot%\system32\wbem
rd /S /Q repository
regsvr32 /s %systemroot%\system32\scecli.dll
regsvr32 /s %systemroot%\system32\userenv.dll
mofcomp cimwin32.mof
mofcomp cimwin32.mfl
mofcomp rsop.mof
mofcomp rsop.mfl
for /f %%s in ('dir /b /s *.dll') do regsvr32 /s %%s
for /f %%s in ('dir /b *.mof') do mofcomp %%s
for /f %%s in ('dir /b *.mfl') do mofcomp %%s

net start ccmexec
cd %programfiles%\citrix\system32\citrix\wmi
for /f %%s in ('dir /b *.mof *.mfl') do mofcomp %%s


"

Enjoy :)

 

 

No comments:

Post a Comment