If this has just recently happened, try
restoring the registry to a time before it happened. If this doesn't help, you may have to reinstall Windows, but install it into the existing Windows folder, which will repair the current installation without losing your data and programs.
This article touches on repair or full reinstallation.