This handy little Windows script will kill all but the necessary services and processes in Vista, leaving you with the extra resources needed to run today's games.
Run it via an elevated command prompt with the command "cscript vgl.vbs" (Vista Orb-->Search: "cmd"-->Right Click cmd.exe-->"Run as administrator").
What it does:
- It will make two loops to kill all the dependant services and then one pass to kill all the parent services (ignoring any services included in the 'arrServicesToKeep' array).
- Next it will kill all running processes including Explorer.exe (ignoring any services included in the 'arrProcessesToKeep' array).
- You will then be presented with a prompt to either run one of the predefined games, or you can type in a full path to the program you want to run.
No settings are changed, so at any time you can simply reboot to restore the system to exactly how it was before the script was run! No worry of crashes making things "stick". :)
Edit the script to your liking, as you may want to add personal services and processes you want to keep, as well as change the predefined list of games (available in the form of a 2D array -- "Display name","path to executable").
Notes of interest:
- Networking is left intact for network gaming.
- Task Manager is ignored while killing processes, so you can watch the progress/outcome of the script.
- The arrays are NOT dynamic, if you add/remove something, ensure the Dim statement reflects the new size correctly.