This question already has an answer here:
Because I program a lot on my personal machine, sometimes I have a lot of windows open with articles on blogs etc that I would like to keep open as I'm working in addition to VS etc. Rather than turn my comp off at night or put it into hibernation (shudder), I simply leave it in standby or just plain on.
The problem is, every once in a while, Windows Update performs an update and automatically restarts my comp, which makes me lose everything. Where is the setting to prevent this from happening?