How to Stop Windows Updates Restarting Your Forex VPS
You check your trading account in the morning and something is wrong. A position that should have closed overnight is still open, or a setup your EA was waiting for came and went without a trade. You log in to your VPS and MetaTrader is not running. The server restarted in the night, and nothing started it again.
The most common cause is not a hardware fault or an outage. It is Windows Update. Windows Server installs security updates and then restarts to finish installing them, often at a time that suits Microsoft rather than the forex market. For a normal business server, a restart at 3 a.m. is harmless. For a server running Expert Advisors in a market that trades 24 hours a day from Monday to Friday, it can be expensive.
This guide shows you how to take control of updates on your Windows forex VPS, so that restarts happen when you choose, ideally at the weekend while the market is closed. It works for Windows Server 2019 and 2022, which are the versions used on all Cheap Forex VPS plans.
Why Windows Updates Restart Your VPS
Microsoft releases a cumulative update for Windows Server every month on the second Tuesday, known as Patch Tuesday. Additional updates can arrive at other times when there is an urgent security fix. Most of these updates replace system files that are in use while Windows is running, so they cannot finish installing until the server restarts.
By default, Windows downloads the update, installs it, and then schedules a restart outside “active hours”. The problem for traders is that active hours were designed for office workers. They cover a limited part of the day, and the forex market is open around the clock. Whatever time Windows picks, there is a chance your EA is in a trade.
When the server restarts, three things can go wrong:
Open trades are left unmanaged while the VPS is down. Trailing stops do not move and exits based on EA logic do not happen.
MT4 or MT5 does not reopen after the restart unless you have set it up to start automatically.
Your EA may not resume correctly, for example if AutoTrading is switched off or the EA loses track of trades it opened before the restart.
Should You Just Turn Windows Update Off?
It is tempting, but no. Turning updates off completely leaves your server without security fixes. A forex VPS is connected to the internet all the time, holds your trading account logins, and accepts remote desktop connections. Unpatched servers are a favourite target for automated attacks.
The goal is not to stop updates. The goal is to choose when they install and when the server restarts. The approach below does exactly that: Windows downloads updates automatically, but nothing is installed and no restart happens until you decide, which for most traders means the weekend.
Method 1: Set Windows Update to “Download Only” with SConfig (Recommended)
SConfig is Microsoft’s built-in server configuration tool. It is the simplest and most reliable way to change update behaviour on Windows Server 2019 and 2022, and it takes about a minute.
Connect to your VPS with remote desktop.
Right-click the Start button and open Windows PowerShell (Admin) or Terminal (Admin).
Type sconfig and press Enter. A text menu appears.
Type 5 (Update settings) and press Enter.
Choose your setting:
A (Automatic): Windows downloads, installs and restarts on its own. This is the default, and the one you want to avoid.
D (Download only): Windows downloads updates but waits for you to install them. This is the recommended setting for most traders.
M (Manual): Windows does not check for or download updates until you ask.
Type D, press Enter, and confirm the message.
Back in the main menu, check that the Windows Update setting now shows “Download only”. Then choose the option to exit to the command line.
“Download only” is the best balance. Updates are waiting on the server, so installing them takes minutes, but nothing happens until you start it.
If you see the message that “sconfig” is not recognised, make sure PowerShell is running as administrator. On Windows Server 2019 you can also type sconfig.cmd.
Method 2: Use Local Group Policy for Finer Control
Group Policy gives you more detailed options, including what happens when updates are scheduled while you are logged in. Use it if you want a specific schedule rather than full manual control.
Press Windows key + R, type gpedit.msc and press Enter.
Go to Computer Configuration > Administrative Templates > Windows Components > Windows Update.
Double-click Configure Automatic Updates and set it to Enabled.
Under “Configure automatic updating”, choose one of these:
– Notify for download and auto install: Windows tells you updates are available but does not download them.
– Auto download and notify for install: Windows downloads updates and waits for you to install them. This matches the “Download only” setting above.
Click OK and close the editor.
If you prefer a scheduled installation (option 4, “Auto download and schedule the install”), also look for the policy No auto-restart with logged on users for scheduled automatic updates installations. Depending on your Windows version, it sits in the same Windows Update folder or in a “Legacy Policies” subfolder. When enabled, it asks Windows not to restart automatically while a user is signed in. Be aware that it only applies to scheduled installations, and administrators frequently report that Windows can still restart in some situations. For a trading server, options 2 or 3 are more predictable.
Group Policy settings override SConfig. If you change both, the Group Policy setting wins.
Method 3: Set Active Hours (A Safety Net, Not a Solution)
Active hours tell Windows when you are normally using the server, so it avoids restarting during that window.
Open Settings > Update & Security > Windows Update.
Click Change active hours.
Set the longest window available, centred on the sessions your EA trades most, for example the London and New York overlap.
Because the active hours window cannot cover all 24 hours, Windows can still restart during the remaining hours. Treat this as a backup, combined with Method 1 or 2.
Method to Avoid: Disabling the Windows Update Service
Some guides suggest opening Services and setting the Windows Update service to Disabled. We do not recommend this. Windows tends to re-enable the service on its own, other system tasks rely on it, and you lose security updates entirely. If you later need to install an urgent patch, you must remember to turn the service back on first. SConfig and Group Policy achieve the same goal safely.
A Weekend Patch Routine for Forex Traders
Once you control updates, set yourself a simple routine. The forex market closes on Friday at around 5 p.m. New York time and reopens on Sunday at around 5 p.m. New York time. That gap is the perfect window for maintenance.
Wait until the market has closed on Friday and your EAs have no open positions, or until you are comfortable with any positions held over the weekend.
Connect to your VPS and open Settings > Update & Security > Windows Update.
Install the waiting updates. Click Install now and wait for them to finish.
Restart the VPS from the Start menu.
Reconnect after two or three minutes and check that MetaTrader has reopened, is connected to your broker, and that each EA shows as active on its chart.
Make a note of the date. Patching once a month, the weekend after Patch Tuesday, keeps your server current without disrupting weekday trading.
If Microsoft announces an urgent security fix, it is worth installing it sooner, during a quiet part of the trading day when your EA is flat.
Make Sure MT4 Starts Again After Every Restart
Controlling updates reduces surprise restarts, but it cannot remove them completely. Your server may also restart after maintenance, a power event in the data centre, or a crash. The best protection is to make MetaTrader start automatically every time Windows starts, so a restart costs you a few minutes instead of a full trading day.
Our step-by-step guide on how to auto-start MT4 after a VPS reboot shows you how to set up automatic sign-in and launch every terminal on startup. Together with the settings in this article, it makes your VPS close to hands-off.
How to Tell If an Update Caused a Restart
If your VPS restarted and you are not sure why, check the Windows logs.
Press Windows key + R, type eventvwr.msc and press Enter.
Go to Windows Logs > System.
Click Filter Current Log and enter Event ID 1074.
Event 1074 records planned restarts and shows which process started them. An entry mentioning Windows Update or TrustedInstaller means an update caused the restart. If there is no planned restart entry around that time, the cause was something else, and you should contact support with the time it happened. You can also read about what an uptime guarantee actually means for trading.
Other Ways to Keep Your EAs Running Through Restarts
Back up your MetaTrader data folder before installing large updates. Our guide on how to back up your forex VPS and trading data explains what to copy.
Use EAs that handle restarts gracefully. Good EAs find their own open trades after a restart using magic numbers. Ask your EA developer if you are unsure.
Set stop losses on the broker side. A stop loss stored on the broker’s server protects a trade even while your VPS is offline. Virtual or hidden stops managed by the EA do not.
Keep the server lean. Fewer programs means faster restarts and fewer things to break. See why your forex VPS might be running slow for clean-up tips.
Frequently Asked Questions
Will Windows Update restart my forex VPS automatically?
By default, yes. Windows Server installs updates automatically and restarts to finish them. You can stop this by setting Windows Update to “Download only” in SConfig, or to “Auto download and notify for install” in Group Policy.
Is it safe to turn off Windows updates on a trading VPS?
Turning them off completely is not safe, because your server would stop receiving security fixes. It is safe, and recommended, to control the timing so that updates install only when you choose.
What is the best time to update a forex VPS?
The weekend, between Friday’s market close and Sunday’s open. Patching once a month, shortly after Microsoft’s second-Tuesday release, keeps the server secure with minimal disruption.
Does SConfig work on Windows Server 2022?
Yes. SConfig is included in Windows Server 2019 and 2022. Open PowerShell as administrator, type sconfig, and choose option 5 for update settings.
Why did my VPS restart even though I changed the settings?
Check whether a Group Policy setting is overriding SConfig, and look for Event ID 1074 in the System log to see what triggered the restart. Restarts can also come from data centre maintenance or a system crash. If you cannot find the cause, contact our support team.
Will my EA restart by itself after Windows restarts?
Only if MetaTrader is set to start automatically and your EA is saved on its chart with AutoTrading enabled. Follow our guide on auto-starting MT4 after a reboot to set this up.
Does the VPS provider install Windows updates for me?
On an unmanaged Windows VPS, you control Windows Update yourself. If you would like help configuring update settings on your Cheap Forex VPS, our support team is available 24/7 by live chat and ticket.
