1. Disable UAC;
2. Excute mofcomp.exe "C:Program Files (x86)Microsoft SQL Server100Sharedsqlmgmproviderxpsp2up.mof"
[@more@]If you run into any compilation error like - An error occurred while processing item 1 defined on lines 4 - 7 in file C:Program Files (x86)Microsoft SQL Server100Sharedsqlmgmproviderxpsp2up.mof:
0X80041002 Class, instance, or property 'Name' was not found.
Compiler returned error 0x80041002
follow the below steps.
1. Stop WMI service
2. Navigate to the folder “C:WindowsSystem32wbem” and rename the repository folder to repository_old
3. Rerun the same cmd again
C:Program FilesMicrosoft SQL Server100Shared>mofcomp "C:Program FilesMicrosoft SQL Server100Sharedsqlmgmproviderxpsp2up.mof"
