A good program to have which bypasses all these problems is GoBack.
Unlike system restore, GoBack takes your PC back to a specified time and all that occurred after that time does not exist.
I used it when I first started playing with PCs and editing the registry etc.
It restores everything.
Never let me down yet no matter how bad the calamity which had befallen me.