Windows 7 turns off my computer while sitting idle

I may be wrong, but have you tried checking you power settings? Sometimes, they are set to shut the computer down after a set amount of time.

This website is not affiliated, owned, or endorsed by Microsoft Corporation. It is a member of the Microsoft Partner Program.