Holy moly I hope you didn't delete anything from inside system32!
C:\Windows\System32\powercfg.exe -x -disk-timeout-ac 0 ; how long to wait before turning off disks while plugged in
C:\Windows\System32\powercfg.exe -x -disk-timeout-dc 0 ; how long to wait before turning off disks while on battery
C:\Windows\System32\powercfg.exe -x -hibernate-timeout-ac 0 ; how long to wait before sleeping (plugged in)
C:\Windows\System32\powercfg.exe -x -hibernate-timeout-dc 0 ; how long to wait before sleeping (on battery)
C:\Windows\System32\powercfg.exe -x -monitor-timeout-ac 0 ; wait to turn off screen
C:\Windows\System32\powercfg.exe -x -monitor-timeout-dc 0
C:\Windows\System32\powercfg.exe -x -standby-timeout-ac 0 ; how long to wait before shutdown
C:\Windows\System32\powercfg.exe -x -standby-timeout-dc 0
A timeout of zero means "never".
Documentation for the powercfg.exe tool:
https://technet.microsoft.com/en-us/library/cc748940%28v=ws.10%29.aspx?f=255&MSPPError=-2147217396Documentation for Windows Task Scheduler:
http://windows.microsoft.com/en-au/windows/schedule-task#1TC=windows-7I guess the best thing to do is familiarise yourself with these things before making any changes. This is a hack though.
These instructions might be helpful:
https://support.microsoft.com/en-us/kb/929135 especially the part about "How to determine what is causing the problem by performing a clean boot"
If it was me I'd look for the offending software for a couple of hours, and if I had no luck I'd flatten and reinstall windows. I couldn't stand having software, that wasn't obvious, changing power settings on its own. Who knows what else it is doing.
Sorry for your frustrations.