• Home
  • Partners
  • Help and support
  • English
Pepperstone logo
Pepperstone logo
  • Ways to trade
    • Trading accounts

      Choose from two account types depending on your strategy

    • Premium clients

      Exclusive rewards and bespoke benefits for high-vol traders

    • Pricing

      Discover our tight spreads, plus all other possble fees

    • Active trader program
    • Refer a friend
    • Trading hours
    • 24-hour trading
    • Maintenance
    • Risk management
  • Markets
    • Forex

      Get great rates on majors like EUR/USD, plus minors and exotics

    • Indices

      Enjoy 24-hour pricing on the UK100, US30 and more

    • Commodities

      Trade on metals, energies & softs, with oil spreads from 2 cents

    • Shares
    • ETFs
    • Currency indices
    • Dividends for index CFDs
    • Dividends for share CFDs
    • CFD forwards
  • Trading platforms
    • TradingView

      Trade through the world-famous supercharts with great pricing

    • MetaTrader 5

      Explore the apex in trading automation with our execution tech

    • The Pepperstone platform
    • MetaTrader4
    • CopyTrading
    • cTrader
    • Trading tools
  • Market analysis
    • Navigating markets

      Latest news and analysis from our experts

    • The Daily Fix

      Your regular round-up of key events

  • About us
    • Who we are

      Pepperstone was born from the dream of making trading better

    • Company news
    • Company awards
    • Protecting clients online
    • Trading accounts

      Choose from two account types depending on your strategy

    • Premium clients

      Exclusive rewards and bespoke benefits for high-vol traders

    • Pricing

      Discover our tight spreads, plus all other possble fees

    • Active trader program
    • Refer a friend
    • Trading hours
    • 24-hour trading
    • Maintenance
    • Risk management
    • Forex

      Get great rates on majors like EUR/USD, plus minors and exotics

    • Indices

      Enjoy 24-hour pricing on the UK100, US30 and more

    • Commodities

      Trade on metals, energies & softs, with oil spreads from 2 cents

    • Shares
    • ETFs
    • Currency indices
    • Dividends for index CFDs
    • Dividends for share CFDs
    • CFD forwards
    • TradingView

      Trade through the world-famous supercharts with great pricing

    • MetaTrader 5

      Explore the apex in trading automation with our execution tech

    • The Pepperstone platform
    • MetaTrader4
    • CopyTrading
    • cTrader
    • Trading tools
    • Navigating markets

      Latest news and analysis from our experts

    • The Daily Fix

      Your regular round-up of key events

    • Who we are

      Pepperstone was born from the dream of making trading better

    • Company news
    • Company awards
    • Protecting clients online

How do I automatically restart MetaTrader apps after the VPS restart?

Windows has a native feature to automatically restart all the open apps the next time you turn on or restart your computer or VPS.

 

For Virtual Private Server (VPS)

Method 1:

Windows supports this natively through Scheduled Tasks. Setting up one for Power On is done via the command line using something along the lines of:

schtasks.exe /create /tn "Task Name" /ru SYSTEM /Sc ONSTART /tr

"C:\command2run.cmd"

 

Method 2:

Step 1. Open the Windows Startup Folder.

Step 2. Locate the terminal.exe file of MetaTrader 4 or MetaTrader 5.

Step 3. Create a shortcut of MetaTrader 4 terminal .exe file in the startup folder.

Video guide:

How to make your MetaTrader4 (MT4) application automatically start after a VPS reboot?

Details:

Step 1

Windows Startup Folder is a hidden system folder. There are two ways you can open this folder

  1. Through file explorer from the taskbar and go to this path: %APPDATA%\Microsoft\Windows\Start Menu\Programs\Startup
  2. The second one is you can open it using the shell command (shell:startup). You can execute the shell command from the ‘'Run’' dialog box.
VPSFAQs10.jpg

VPSFAQs11.jpg

Step 2:

Locate the terminal.exe file

Generally, the .exe file of MetaTrader 4 is located in the C:\Program Files (x86)\Pepperstone MetaTrader 4

VPSFAQs12.jpg

Step 3.

Copy the terminal.exe file and past it into the Startup folder as a shortcut

VPSFAQs13.jpg

 

For Personal computers Windows 10 and 11

Search for Settings or Manage Your Account > Sign-in options > Restart apps, turn it on

VPSFAQs14.jpg

 

Other sites

  • The Trade Off
  • Partners
  • Group
  • Careers

Ways to trade

  • Pricing
  • Trading Accounts
  • Premium Clients
  • Active trader program
  • Refer a friend
  • Trading hours

Platforms

  • Trading Platforms
  • Trading tools

Markets and Symbols

  • Forex
  • Shares
  • ETFs
  • Indices
  • Commodities
  • Currency indices
  • CFD Forwards

Analysis

  • Navigating Markets
  • The Daily Fix
  • Meet our Analysts

Learn to Trade

  • Trading Guides
  • Videos
  • Webinars
Pepperstone logo
support@pepperstone.com
+254203893547
The Oval | Ring Road Parklands
P.O.Box 2905-00606 | Nairobi, Kenya
  • Legal documents
  • Privacy policy
  • Website terms and conditions
  • Cookie policy
  • Sitemap

Risk Warning:

Margin trading products are complex instruments and come with a high risk of losing money rapidly due to leverage. 84% of retail investor accounts lose money when trading on margin with this provider. You should consider whether you understand how margin trading works and whether you can afford to take the high risk of losing your money. You don't own or have rights in the underlying assets. Past performance is no indication of future performance and tax laws are subject to change. The information on this website is general in nature and doesn't take into account your personal objectives, financial circumstances, or needs. Please read our PSF, RDN and other legal documents and ensure you fully understand the risks before you make any trading decisions. We encourage you to seek independent advice.

The information on this site and the products and services offered are not intended for distribution to any person in any country or jurisdiction where such distribution or use would be contrary to local law or regulation.

Pepperstone Markets Kenya Limited 2nd Floor, The Oval, Ring Road Parklands, PO Box 2905-00606 Nairobi, Kenya is licensed and regulated by the Capital Markets Authority.

© 2025 Pepperstone Markets Kenya Limited | Company No.PVT-PJU7Q8K | CMA License No.128