How to Repair WMI:

 
Symptoms of the problem:
You may experience this issue when the machine is not receiving the advertisements and updated inventory information is not complete.
 
Cause:
WMI (Windows Management Instrumentation) repository is corrupted.
 
Solution:
Repair WMI Repository
 
How to Repair WMI:
1.       Open Command prompt in elevated mode (with Admin rights) as below.
Right Click on “Command Prompt” and select “Run as administrator”.
 
2.       At the command prompt type “Services.msc” (Without Quotes) to open services console with administrator previlage.
   
 
3.       At the Services Console, STOP ‘Windows Management Instrumentation’ service which pops up a window to intern stop all dependant services i.e. Security center, IP Helper and SCCM Agent Host respectively.
Click YES to Stop other dependent services.
4.       Now at the command prompt opened in elevated mode, type “winmgmt /resetrepository” (Without Quotes).
On completion you will receive the below message.
 the WMI repository has been reset. 
 
5.       You can double check the WMI repository reset by looking at the location “C:\Windows\System32\wbem”.
The old folder has been renamed to “repository.001” (Marked in RED) and recreated new folder “repository” (Marked in GREEN).
6.       Now START the ‘Windows Management Instrumentation’ service if not started automatically, also very important is you have to start the 3-dependent services manually(Security center, IP Helper and SCCM Agent Host respectively.)
7.      Once the repository is recreated, it will initiate SCCM client reinstallation in 5mins. You can check the reinstallation completion status in CcmRepair.log which is under C:\Windows\System32\CCM\Logs folder after 10-15 mins.
By looking at the below message with current date stamp you can confirm the completion of SCCM client Repair.
<![LOG[Success]LOG]!>
<![LOG[Repair complete.]LOG]!>
8.      Client will receive the advertisements once the SCCM client is successfully Repaired.