These are pretty generic instructions to do what you ask. It might help if you give us a little more info as to what program you are having problems with and the specific problem if the below does not help.
Go to control panel and open Administrative tools.
Click on services.
Go down to Windows Managament Instrumentation.
Stop this service. along with Security Center.
Exit out of this area to your desktop.
Right click Start and choose Explore.
Go down to c:\windows or Winnt\system32\wbem\repository.
Delete the Repository Folder
Go back to Services and restart the WMI program
Then re-boot the computer
To reinstall WMI issue these commands:
net stop winmgmt
rd %systemroot%\system32\wbem\Repository
net start winmgmt
Reinstalling WMI
http://whidbey.msdn.microsoft.com/library/default.asp?url=/library/en-us/wmisdk/wmi/reinstalling_wmi.asp
You don't have to reboot for the WMI reinstallation to take effect.