Windows Server installs updates and restarts when its Automatic Updates setting tells it to, and on many machines that means a restart at a time you did not choose. On a trading VPS you take that choice back in two ways: let Windows only notify you and install by hand at the weekend, or schedule the install for Saturday. Active hours cannot cover a trading week. After the restart you check that each terminal came back, connected and trading.
How Windows Server decides when to install and restart
Two places hold the setting. Group Policy, under Computer Configuration, Administrative Templates, Windows Components, Windows Update, Configure Automatic Updates, wins when it is set. When it is not, the choice made in the Windows Update settings or in SConfig applies. Microsoft documents these modes (Group Policy options, SConfig settings):
| Mode | What Windows does | Risk on a trading VPS |
|---|---|---|
| SConfig Automatic | Checks for and installs updates every day at 3:00 AM, by the VPS's own clock and time zone | High: from Monday to Friday, 3:00 AM falls inside the trading week |
| SConfig Download only (Microsoft's default for that tool) | Downloads updates and notifies you in the Action center | Low, but the notice is visible only while you are signed in, so updates wait until you look |
| SConfig Manual | Does not check for updates by itself | None, and no security updates unless you install them |
| Policy option 2 or 3 | Notifies before download (2) or after download (3); you install from Settings | Low |
| Policy option 4 | Downloads and installs on the day and hour you set, then restarts | Planned: you choose the day |
| Policy option 7 (Windows Server 2016 and later) | Downloads, notifies you to install, then notifies you to restart | Low: Microsoft recommends it for servers |
Why active hours do not protect a trading week
Active hours tell Windows when not to restart. Microsoft's defaults are 8 AM to 5 PM, and the longest window is 12 hours on Windows Server 2016 and 18 hours on later versions. The forex market is open around the clock from Sunday evening to Friday evening, so at least 6 hours of every trading day stay open to a restart.
Two other settings look like protection and are not:
- Staying connected. For Remote Desktop, Microsoft counts only active sessions as signed-in users. Closing the Remote Desktop window leaves MetaTrader running, but Windows Update no longer sees you as signed in.
- No auto-restart with logged on users. Microsoft writes that this policy "doesn't work exactly as per description" and recommends option 7 for servers instead.
Pick the time: the weekend after Patch Tuesday
Microsoft publishes its monthly security update on the second Tuesday of each month, typically at 10:00 AM Pacific Time. Out-of-band fixes come outside that schedule when Microsoft needs them. For a trading VPS this gives a simple rhythm: install once a month, on the first weekend after the second Tuesday.
Choose the hour by the market, not by the clock on the wall:
- The window runs from your broker's Friday close to its Sunday open. Saturday sits in the middle of it.
- If you trade symbols that are open at the weekend, such as crypto CFDs at some brokers, check their trading hours in MetaTrader before you choose.
- Scheduled times use the VPS clock. Check its time zone in the Date and time settings before you enter an hour.
See how your VPS is set up now
- Connect with Remote Desktop.
- Open Settings, then Update & security, then Windows Update. The page shows pending updates and a restart that may already be scheduled.
- To read the policy, press the Windows key and R, type
gpedit.msc, and go to Computer Configuration, Administrative Templates, Windows Components, Windows Update (if the policy is not listed there, look in the subfolders of Windows Update). Open Configure Automatic Updates and read whether it is Not Configured, Disabled or Enabled, and with which option. - Alternatively, open PowerShell, type
SConfigand press Enter. The main screen shows the current update setting.
If a restart is already scheduled in the middle of the week, install and restart now during a quiet moment, or at least before the time shown.
Option A: be notified, then install by hand at the weekend
This is the setting with the fewest surprises.
- In
gpedit.msc, open Configure Automatic Updates, choose Enabled, and in the options pick 7 - Notify for install and notify for restart. Click OK. - Open a Command Prompt and run
gpupdate /forceso the change applies straight away. - Put a reminder in your calendar for the weekend after the second Tuesday of each month.
On that weekend:
- Check that no EA is in the middle of something you would not want interrupted. Open positions stay on the broker's server during the restart (see the table below), but the EAs stop until the terminals are back.
- Write down what should be running: terminals, accounts, EAs and charts.
- Open Settings, Update & security, Windows Update, and choose Check for updates. Install what is offered. Or, in PowerShell, run
SConfig, choose6, then1for all quality updates, thenAto install them. - When Windows asks for a restart, first close each terminal with File, Exit, so it saves its charts and settings. Then restart.
- Some updates keep Windows on an updating screen for a while during the restart. Let it finish: do not stop the VPS from outside while it works.
- Wait a few minutes before you reconnect, then run the checks further down.
Option B: schedule the install for Saturday
Use this if you do not want to install by hand. The VPS will restart on its own at the hour you set, so the terminals must start again without you.
- In
gpedit.msc, open Configure Automatic Updates, choose Enabled and pick 4 - Auto download and schedule the install. - Set the scheduled install day to Saturday and the hour you chose by the VPS clock. In Microsoft's settings the days run from Sunday (1) to Saturday (7), and 0 means every day: do not leave it on every day.
- Click OK and run
gpupdate /force. - Make sure the terminals start again by themselves after a reboot. Microsoft states that this option forces a restart after the scheduled install, so the autostart has to work without you.
The weak point of this option: nobody closes the terminals before the restart, so changes you made since the last save can be lost. Keep each terminal's profile saved (File, Profiles) so that the charts and EAs come back as you left them.
What stops and what keeps working during the restart
| Item | Where it lives | During the restart |
|---|---|---|
| Open positions | Broker's server | Stay open |
| Stop Loss and Take Profit | Broker's server | Keep working |
| Pending orders | Broker's server | Keep working |
| Trailing stop of MT4 or MT5 | The terminal | Stops: it works in the terminal, not on the server (MT4 help, MT5 help); the last Stop Loss it set stays |
| The EA, and stops or targets it manages itself | The terminal | Stop until the terminal is running again |
If your EA keeps its stops hidden instead of sending them to the broker, those stops do nothing until the terminal is running again. Ask the vendor how the EA behaves after a restart.
What to check after the restart
- Did it restart when you expected? Open Task Manager on the VPS, Performance, CPU, and read Up time.
- Was it the update? Open Event Viewer (type
eventvwrin the Start menu), Windows Logs, System, and filter for event ID1074. Microsoft describes it as the event logged when an application or a user restarted the machine. A 41 or 6008 at that time means the shutdown was not clean. - What was installed? The update history on the Windows Update page lists the updates. In PowerShell,
(Get-HotFix | Sort-Object -Property InstalledOn)[-1]shows the most recent one and its date. Get-HotFix does not list every kind of update, so the history page is the fuller list. - Is each terminal back? Every terminal on your list is open, the connection indicator in the bottom-right corner is active, and the Journal tab shows a start time from before you connected.
- Are the EAs trading? AutoTrading (Algo Trading in MT5) is on, each EA is on its chart with its status icon, and the Experts tab shows no errors.
- Do the trades match? Compare open positions and pending orders with what you wrote down.
- Leave by closing the Remote Desktop window, not by signing out.
If a terminal is missing or idle, start with MT4 not starting after a VPS reboot. If the EAs are back but do not trade, see EA stopped after the weekend.
When this is not the right approach
- The VPS restarted mid-week and there is no 1074 from an update. The cause is elsewhere: see MT4 keeps disconnecting on a VPS for how to read restarts in Event Viewer.
- The VPS hangs after an update instead of restarting. Work through VPS stuck or not responding before you stop it from outside.
- Updates keep the VPS slow for hours. That is load, not a restart problem: see why a trading VPS gets slow.
How this works on Dipgate
- A Trading VPS runs Windows Server 2022, 2019 or 2016, so the settings on this page apply to it. Autologin is set up on the VPS; move each platform's shortcut into the My Platforms Autostart folder so the terminals start after the restart. If you change the VPS password, redo the autologin.
- Dipgate's knowledge base has an article on installing Windows updates on a Dipgate VPS, and its resource-monitoring article suggests a weekend reboot. The video below was recorded on a Trading VPS (Windows):

- From the client area you can start and stop a Trading VPS, and it has a VNC Console and Backups panel. A VNC console shows the VPS screen without Remote Desktop, which helps when Remote Desktop cannot connect during a long update.
- Metatrader VPS runs Ubuntu, not Windows, so this page does not apply to it.
More on the Trading VPS page.
