Friday, December 14, 2012

WMI error retrieving object MetaFrame_DisconnectedSession_Happening: Received error: 0x80041002: Not found

In Eventvwr under Application Log  WSH


Citrix Monitoring Script Event 2
Citrix MetaFrame Compute Event Rate:
WMI error retrieving object MetaFrame_DisconnectedSession_Happening:
Received error: 0x80041002: Not found 

Event Type: Error
Event Source: WSH
Event Category: None
Event ID: 1 
 Description:
Citrix Monitoring Script Event 2
Citrix MetaFrame Compute Event Rate:
WMI error retrieving object MetaFrame_DisconnectedSession_Happening:
Received error: 0x80041002: Not found 


SOLUTION:

Recompile the complete WMI repositories and then run the following commands for recreating these files.
  • Recompile Microsoft Windows .MOF files:
  • net stop winmgmtc: 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 


  • Recompile Citrix .MOF files:
  • cd %programfiles%\citrix\system32\citrix\wmi for /f %s in ('dir /b *.mof *.mfl') do mofcomp %snet start winmgmt

    No comments:

    Post a Comment