How to Set Up a Windows VPS for Power Automate and Business Process Automation

How to Set Up a Windows VPS for Power Automate and Business Process Automation

Microsoft Power Automate is a powerful RPA platform that lets you automate repetitive business tasks. Desktop flows require a Windows machine to execute. A Windows VPS is the perfect host for running Power Automate desktop flows 24/7 without tying up a physical workstation. This guide walks you through the complete setup process.

To get started, you will need a Windows VPS with sufficient resources. Compare Windows VPS providers on our comparison page to find a plan that meets your automation needs.

Prerequisites

  • A Windows VPS with Windows Server 2022 or 2025 (at least 4 GB RAM, 2 vCPUs)
  • A Microsoft 365 license with Power Automate (per-user plan with RPA capabilities)
  • An on-premises data gateway (for on-premises data access)
  • Administrator access to your Windows VPS via RDP

Step 1: Prepare Your Windows VPS

Start by connecting to your Windows VPS via Remote Desktop. Once connected, install all Windows Updates, enable .NET Framework 3.5 and 4.8 (required by Power Automate), disable sleep and hibernation with powercfg commands, disable screen saver and session timeouts, and configure the server to auto-login on restart using netplwiz. Auto-login is critical for unattended RPA scenarios.

Step 2: Install Power Automate Desktop

Download Power Automate Desktop from the Microsoft 365 admin center, run the installer with default options, sign in with your Microsoft 365 account, and verify the connection in the Power Automate portal at make.powerautomate.com under Monitors > Machines.

Step 3: Configure Attended vs Unattended RPA

Power Automate supports two modes for desktop flows. In attended mode, a human user must be logged into the Windows VPS and the flow runs in the user’s session. In unattended mode, flows run without human interaction using a separate session, making it ideal for scheduled overnight processing. Unattended RPA requires a Power Automate per-flow plan or per-user plan with unattended add-on.

FeatureAttendedUnattended
User interaction neededYes (user must be logged in)No (runs automatically)
License requiredPower Automate per-user planPer-flow plan or per-user + unattended add-on
Use caseSupervised automation, data entryBatch processing, overnight jobs
Session typeUser sessionSeparate headless session

Step 4: Install On-Premises Data Gateway

If your desktop flows need to access on-premises data (SQL Server, file shares, Exchange), install the on-premises data gateway. Download it from Microsoft, install on your VPS, register it with your Microsoft 365 tenant, configure data sources, and test the connection. This bridges cloud flows with on-premises data sources securely.

Step 5: Create and Schedule Desktop Flows

In the Power Automate portal, create a desktop flow using the recorder, test it locally, create a cloud flow that triggers your desktop flow using triggers like scheduled time, new email, or file creation, configure run options to specify your VPS machine, select attended or unattended mode, and set up error handling and notifications.

Best Practices for Power Automate on Windows VPS

  • Right-size your VPS: Start with 4 GB RAM and 2 vCPUs, then monitor resource usage and scale up if needed
  • Use a dedicated VPS: Do not run other production workloads on the same VPS that runs your RPA flows
  • Monitor session health: Set up alerts in Power Automate to notify you if flows fail or if the machine goes offline
  • Implement logging: Use PowerShell to write flow execution logs to a text file for troubleshooting
  • Secure your VPS: Restrict RDP access to specific IP addresses, enable Network Level Authentication (NLA), and use strong passwords
  • Regular maintenance: Schedule weekly Windows Updates and monthly VPS reboots

A Windows VPS provides the always-on environment that Power Automate desktop flows need. Whether you are automating invoice processing, data entry, or system administration tasks, this setup gives you a reliable, cost-effective automation platform. Check out the best Windows VPS hosting plans to find the right hardware for your RPA workloads.

Leave a Comment