I had this issue and all the steps described in this and other internet posts led me to a dead end of errors.
However, I then discovered that somehow almost all my services had gotten reset to "disabled". This was causing my original problems (network connectivity among them) and this problems.
Changing the services settings fixed my problems
To get to services type services in the search programs box on the start menu, then right click to run it as administrator.