Metatrader configuration gone when Metatrader auto-start when VPS restart? - page 3

 
wilibaldoplatek #:

According to this article, the MT4 terminal will set the data folder to %appdata% if at least one of these three conditions is met:

  • UAC system is enabled. The exception is when the terminal is installed on a portable device (external hard drive, usb flash drive, etc.).
  • Current PC user has limited rights to write data to the installation directory.
  • A user is working via remote connection (RDP).

Since VPS accounts are usually administrator type and there is no active RDP when the server restarts, the only option left is to enable UAC. This ensures that MT4 will use the %appdata% as data folder when it is started by the task scheduler after a reboot.

Thank you for pointing this out. About 2 weeks ago I started experiencing this problem after reinstalling my VPS, a server I was using for the past 2 years without any metatrader auto-startup issues.

However, the reinstallation disabled UAC, so I manually re-enabled UAC and now my MT4 and MT5 terminals are using the %appdata% folder to restart and are therefore keeping their configurations.

 
Shalem Loritsch #:

Everyone with this startup profile issue, is UAC enabled on the affected machine?  (Registry Editor -> HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System -> EnableLUA = 1)  If EnableLUA is set to any other value, try changing it to 1, rebooting, and see if the MQL5 profile issue remains.

@hk.trade @Kevin Lemire @wilibaldoplatek @Ed @Mark David Harvey Brewster

This solution worked for me. 

I also compared two VPSes with and without this problem and the only difference was the registry value for EnableLUA.

0 - disabled

1 - enabled

Thank you!