Hi, i took my windows-7 laptop back to factory settings yesterday and done all the updates, but some are giving me an error message and failing
This is not unusual (actually it is expected behavior) due to Microsoft's buggy Windows update.
Generally, re-attempting to install a failed update several times - even a few hours or a day later will auto-resolve all by itself and the update will install. Something as simple as a minor networking issue will cause various Windows 7 updates to fail to install. If that does not work, then try the methods given by others above.
I have seen as many as 97 individual Windows updates fail to install on Windows 7 all at a single time out of 185 updates. And every single time I run updates on a clean install of Windows 7 there are always failed updates. Sometimes as few as 5 or so, sometimes more than 10+ reaching beyond 50 - but there are ALWAYS failed updates.
There are many guides online to solve the many Windows update failures online.