Before you start
A VPS is a remote computer. Open Remote Desktop and do these steps inside the VPS. In Windows, open Settings → Time & language → Date & time and check its clock and time zone. Your own computer and your broker may show different times.
Use Sunday at 10:00 AM only if your broker’s Gold market is closed then. If it is open, choose a different time. MT5 and any Expert Advisors running there pause during the restart, so pick a time when you can check the VPS afterward.
1. Schedule the Windows restart
On the VPS, open Start, search for Task Scheduler, and select Task Scheduler Library. Choose Create Task in the right sidebar. If Weekend VPS Restart already exists, right-click it and choose Properties to edit it.
General
Name the task Weekend VPS Restart. Use your usual VPS Windows account if it has permission to restart Windows. Select Run whether user is logged on or not and Run with highest privileges. Leave Do not store password unchecked for this setup. If Configure for lists your Windows Server version, select it.
Triggers
Open Triggers → New. Under Start, choose a Sunday still in the future and use the values below. Leave random delay, extra repeats and expiry unchecked. Select OK.
- Begin the task
- On a schedule
- Schedule
- Weekly
- Recur every
- 1 week
- Day
- Sunday only
- Start time
- 10:00:00 AM on the VPS clock
- Synchronize across time zones
- Unchecked
- Enabled
- Checked
Actions
Open Actions → New. Choose Start a program, copy the two lines into their matching fields, and select OK.
- Program/script
C:\Windows\System32\shutdown.exe- Add arguments
/r /t 0 /d p:4:1- Start in
- Leave blank
/r tells Windows to restart. /t 0 starts the restart immediately when the task runs. /d p:4:1 records planned application maintenance. Keep the timeout at zero and omit /f to avoid forcing apps to close. An app can still block the restart.
Conditions and Settings
Under Conditions, leave the idle and AC power requirements unchecked if shown. Leave the network and wake options unchecked for this VPS setup.
- Allow task to be run on demand
- Checked
- Run task as soon as possible after a scheduled start is missed
- Unchecked
- If the task fails, restart every
- Unchecked
- If the task is already running
- Do not start a new instance
Leaving the missed-start option unchecked keeps a missed Sunday run from catching up during trading hours. Select OK to save. If prompted, enter your Windows VPS password in the Windows dialog.
Back in the library, confirm the task shows Ready, one weekly trigger, one restart action, and the Next Run Time you expect. Recheck it if the VPS time zone changes.
2. Make MetaTrader 5 open again
The scheduled task restarts Windows. Set up AutoStart separately so MT5 opens after Windows signs in.
Use the ForexVPS desktop app
Inside your VPS, double-click MetaTrader AutoStart on the Windows desktop. The app finds the MT4 and MT5 terminals installed on that VPS.

- Check that Target User shows the Windows account you use for MT5.
- Tick the box next to each MT5 terminal you want to reopen. If you have several, use the broker name to identify the right one.
- Enter your Windows VPS password in the app. Click the green Setup button, then select OK when the confirmation appears.
- Open the app again and look for (Configured) next to each selected terminal. Then follow the first-restart checks below.
Setup also enables automatic Windows sign-in. ForexVPS advises checking who can access your VPS before enabling it. To change which terminals open, change the checkboxes and click Setup. To turn off both MetaTrader AutoStart and automatic Windows sign-in, click Disable in the app and confirm.
See the official ForexVPS screenshots for the desktop app.
Manual ForexVPS setup if the desktop app is missing
- Open all the MT5 terminals you want to reopen.
- Find
StartupAdder.exeon the VPS’sC:\drive. Run it, type lowercasey, then press Enter. - Copy the
startup.cmdfile the tool creates. Press Windows + R, typeshell:startup, and paste the file into the folder that opens.
For unattended startup on a dedicated VPS, use the supplied AutoLogon.exe if your provider allows it. Enter your Windows VPS credentials locally and select Enable. Microsoft says users with administrator access can recover the password saved by its Autologon tool.
Open the ForexVPS manual setup guide. If the supplied tools are missing, ask ForexVPS support which setup applies to your VPS.
On another Windows VPS
Sign in as the Windows user who runs MT5. Copy the MT5 shortcut from your Windows desktop or Start menu and paste it into the folder opened by shell:startup. Repeat for each terminal. Ask your VPS provider which automatic sign-in options it supports. If you use manual sign-in, reconnect and sign in after each restart to launch the shortcuts.
3. Verify the first restart
Supervise the first scheduled restart in a closed-market window. If you want to test sooner, right-click Weekend VPS Restart → Run only when you’re ready. That starts the restart immediately. Remote Desktop disconnects while Windows restarts. Reconnect when the VPS responds.
Did Windows restart?
For a quick check, search Start for Task Manager and open Performance → CPU. A short Up time tells you Windows started recently.
Open Start → Event Viewer. Go to Windows Logs → System → Filter Current Log. Enter 12,1074 in the event ID field and select OK. Event 12 from Kernel-General confirms Windows started. Event 1074 from User32 can show what requested the restart. Match the times to your test, then check Last Run Time in Task Scheduler to confirm when the task ran.
Did MT5 reopen on its own?
When you reconnect, check that each MT5 window is already open before launching anything yourself. In each terminal, open View → Toolbox → Journal and find the new startup entry. If it appears after Windows started and before you reconnected, MT5 opened automatically.
- 10:00 AM
- Task Scheduler shows the last run
- 10:01 AM
- Event Viewer shows Windows started (event 12)
- 10:02 AM
- MT5 Journal shows the terminal started
- 10:06 AM
- You reconnect and find MT5 already open
Verify the broker connection, intended account, chart and EA. If you use automated trading, check that Algo Trading is in the intended state and the Experts tab shows no startup errors. For Quintara Gold, confirm the EA appears on the intended Gold chart.
Fix common problems
- Windows stayed up. Check the trigger’s next run time, the task’s last result and whether the Windows account has restart permission.
- Windows restarted but MT5 is closed. In the ForexVPS desktop app, check Target User and confirm your intended terminal shows (Configured). For a manual setup, check the Startup folder of the Windows account that signed in.
- MT5 opened but the EA shows an error. Check the account, the broker connection and the Experts log before relying on the setup.
- Need to pause the schedule? In Task Scheduler Library, right-click Weekend VPS Restart and select Disable.
Sources and further reading
- Microsoft Learn for Windows shutdown and restart options ↗
- Microsoft Learn for Task Scheduler and missed starts ↗
- Microsoft Support for the Windows Startup folder ↗
- Microsoft Sysinternals for Autologon and password storage ↗
- Microsoft Learn for restart events in Windows Server ↗
- MetaTrader 5 Help for Journal and Experts logs ↗
