When your VPS is restarted (either on purpose or after a crash), it boots up to the login screen where the username and password must be entered. Until Windows is logged in, Metatrader 4 cannot be started. This is why traders like to set Windows to automatically log in.
Some vendors have a program available to enable automatic login and automatic starting of Metatrader (such as CNS's AutoBoot). If you don't want to use AutoBoot or if you have a VPS from another vendor, setting Windows to automatically log in is as easy as editing a registry entry.
But since editing registry entries is not easy, we wrote a small utility called SetupAutoLogin.exe
to do it for you. Save this file on your VPS's desktop and double-click it to run it.
This software assumes the username is "Administrator". If your VPS's username is anything else, this software won't work.
If your VPS has a username other than Administrator, you can still create an easy script to take care of this. Copy and paste this text into a notepad window on the VPS:
Windows Registry Editor Version 5.00
; Set Automatic Logon
Change the red text to your actual username and password. SAVE the text document with a .reg extension. For example, save it as "autologon.reg". When you double-click this file, Windows will confirm that you want to add the script to the registry. Say yes and you're done. (Note: this script is also included in the zip file of scripts offered below.)