PVS Gold image WMI issues fix
April 8, 2013 1 Comment
As part of a PVS image issue discovery project, I was able to determine that WMI was not working on several gold images which was causing several memory leaks, as well as event viewer complaining just about every 30 seconds.
Problems escalated whenXenApp hosts would completely run our of virtual memory which would end up affecting the overall user experience.
Environment:
- Windows 2003 SP3
- Citrix XenApp 5.0
- PVS 6.1.16
Issue:
WMI not working on several Golden images. My guess is this image was copied in a broken state and was replicated to many different images.
Fix:
Run the following in command line
- Regsvr32 %SystemRoot%\System32\wbem\wmidcprv.dll
- cd /d %windir%\system32\wbem
- for %i in (*.dll) do RegSvr32 -s %i
- for %i in (*.exe) do %i /RegServer
The Windows Management Instrumentation Tester window may appear, this is normal and we can go ahead to close it.
If it does not work, I also suggest you run the following commands to repair WMI namespace:
- net stop winmgmt
- wmic /NAMESPACE:\\root path “__namespace.name=’wmi'” delete
- mofcomp %windir%\system32\wbem\wmi.mof
- net start winmgmt
Restart the computer to check the result. If the issue persists, try the following steps:
- winmgmt /verifyrepository
- winmgmt /salvagerepository
Hello there. finaly I came across what I wanted exactly how did you fellas found these records?? i would like to show some gratitude to your current article I came across it on the search engines And I bookmarked the item. I’ll discuss. Please send me changes thank you and get a good day