After the restore I did an update of avast internet security, rebooted and then rebooted into safe mode. I ran the avastclean.exe program and it did the trick after the third time. Not sure what had happened but I finally got it working. The wier thing is that the boot scan corrupted some files. Now trying to get the update service working.