For the past week, it has been freezing randomly mostly when I'm watching youtube videos or listening to music causing me to have to manually shut off the computer, AND it randomly restarts both when the OS has loaded and I've been on the computer for a while and during the start up process. Very odd situation. Should I just reformat the computer? This is a vista machine by the way.
You could try shutting off services that you don't need. Below is a file I created called services.bat that could help you to reclaim control of your machine. Use at your own risk, you may have to customize it for your own purposes.
[high=php]
@echo off
cls
echo Stopping services to free up memory . . .
echo.
net start
echo.
echo =====================================
net stop "Apple Mobile Device"
echo.
echo =====================================
net stop "Bonjour Service"
echo.
echo =====================================
net stop "iPod Service"
echo.
echo =====================================
net stop "Automatic Updates"
echo.
echo =====================================
net stop "Background Intelligent Transfer Service"
echo.
echo =====================================
net stop "Distributed Link Tracking Client"
echo.
echo =====================================
net stop "Error Reporting Service"
echo.
echo =====================================
net stop "Event Log"
echo.
echo =====================================
net stop "FLEXnet Licensing Service"
echo.
echo =====================================
net stop "Print Spooler"
echo.
echo =====================================
net stop "Lavasoft Ad-Aware Service"
echo.
echo =====================================
net stop "LexBce Server"
echo.
echo =====================================
net stop "Remote Access Connection Manager"
echo.
echo =====================================
net stop "System Event Notification"
echo.
echo =====================================
net stop "System Restore Service"
echo.
echo =====================================
net stop "Shell Hardware Detection"
echo.
echo =====================================
net stop "SSDP Discovery Service"
echo.
echo =====================================
net stop "TCP/IP NetBIOS Helper"
echo.
echo =====================================
net stop "Task Scheduler"
echo.
echo =====================================
net stop "Themes"
echo.
echo =====================================
net stop "Windows Audio"
echo.
echo =====================================
net stop "Windows Time"
echo.
echo =====================================
net stop "VMware Authorization Service"
echo.
echo =====================================
net stop "VMware DHCP Service"
echo.
echo =====================================
net stop "VMware NAT Service"
echo.
echo =====================================
net stop "VMware Virtual Mount Manager Extended"
echo.
echo =====================================
net stop "COM+ Event System"
echo.
echo =====================================
net stop "Fast User Switching Compatibility"
echo.
echo =====================================
net stop "Network Location Awareness (NLA)"
echo.
echo =====================================
net stop "Cryptographic Services"
echo.
echo =====================================
net stop "IPSEC Services"
echo.
echo =====================================
net stop "Help and Support"
echo.
echo =====================================
net stop "Security Center"
echo.
echo =====================================
net stop "Windows Management Instrumentation"
echo.
echo =====================================
net stop "COM+ Event System"
echo.
echo =====================================
net stop "NVIDIA Driver Helper Service"
echo.
echo =====================================
net stop "Protected Storage"
echo.
echo =====================================
echo.
echo This is the ideal minimum list of running services,
echo.
echo DCOM Server Process Launcher
echo DHCP Client
echo DNS Client
echo Event Log
echo HID Input Service
echo Network Connections
echo Plug and Play
echo Remote Access Connection Manager
echo Remote Procedure Call (RPC)
echo Secondary Logon
echo Security Accounts Manager
echo Telephony
echo Terminal Services
echo TrueVector Internet Monitor
echo Workstation
echo.
echo And here is the current list of running services,
echo see if there is anything else you want to stop.
echo.
net start
echo.
echo Done![/high]
The other idea is to make sure recent security updates for Flash and other things have been applied. Since this is Windows it wouldn't hurt to go through the motions and do a regular scan for spyware and antivirus. There's a lot more you can do, if this is related to software instead of hardware, than just giving up and trying to reformat.