Tuesday, 21 June 2011

WMI Corruption

Having SCCM on the Citrix servers WMI corruption seems to occur quite frequently. I will look into hotfixes for this later. In the mean time i've noticed that if WMI corruption does occur, here are the steps I used to get it back.

1. Disable and stop the WMI service.
     sc config winmgmt start= disabled
     net stop winmgmt

 2. Run the following commands.
    Winmgmt /salvagerepository %windir%\System32\wbem    
     Winmgmt /resetrepository %windir%\System32\wbem

 3. Re-enable the WMI service and then reboot the server to see how it goes.
     sc config winmgmt start= auto


And then

Cd “C:\Program Files (x86)\Citrix\system32\Citrix\WMI”

for /f %s in ('dir /b *.mof *.mfl') do mofcomp %s

Tuesday, 7 June 2011

WMI

Had a couple of issues with a server. One being the App-V client wouldn't start properly (failed to initialize) and another the Xenapp Power and Capacity management wasn't working properly. It turned out that WMI had become corrupt. Here's a post on how to recover from it.

http://social.technet.microsoft.com/Forums/en-US/winservergen/thread/8ed26d46-9994-4052-a307-5b071805aea8/