I think the reason it worked was because I actually system restored it BEFORE I logged on because I screwed up my computer. It gave me the option to system restore, and I didn't try it at first because when I was at desktop it didn't work, and there was an error code. Many thanks! I'll try get other people's opinions as well.
Ok, Area51, would anything cause it to re start itself? I'm running Security Essentials, and later ill run malwarebytes which I used previously before Restoring it, as deletion of the viruses just meant they came back on restart of the computer.