Storage Azure

rclone on Windows Server 2025 on Azure User Guide

| Product: rclone on Windows Server 2025

Overview

This guide covers the deployment and use of rclone on Windows Server 2025 on Microsoft Azure, using cloudimg's virtual machine image from the Azure Marketplace.

rclone is open source software (MIT) that copies, syncs, moves and checks files between more than 70 storage services, including Amazon S3 and S3 compatible stores, Azure Blob Storage and Azure Files, Google Drive and Google Cloud Storage, Backblaze B2, Dropbox, OneDrive, SFTP and WebDAV, and this server's own disks. It verifies every transfer with checksums. This image runs rclone's own web GUI and remote-control API as a background task, with nobody signed in, and puts rclone on the command line for scripts and scheduled jobs.

The image is Microsoft Windows Server 2025 Datacenter with the Desktop Experience (the full graphical interface), Gen2, x64, built from Microsoft's own image on the Azure Marketplace (MicrosoftWindowsServer:WindowsServer:2025-datacenter-g2, version 26100.33828.261112). The Windows Server licence is included in the VM price and billed by Microsoft.

What's included:

  • rclone 1.76.0 for Windows (64-bit), the official release from the rclone project, its checksum verified against the project's signed checksum list when the image was built, in C:\Program Files\rclone\ and on the machine PATH
  • rclone's web GUI (rclone-web 1.2.1, built into rclone.exe) and its remote-control API, run by rclone gui as the scheduled task \rclone under the built-in LOCAL SERVICE account: started at boot, restarted within a minute if it ever stops, and never running as an administrator
  • A random 24-character password for the web GUI user admin, made at the first boot of your VM and saved in C:\ProgramData\rclone-credentials.txt, which only administrators can read. rclone itself keeps only a salted hash of it. No password, remote or token ships in the image, so no two VMs share one
  • The web GUI on http://127.0.0.1:5580/ and the API on http://127.0.0.1:5572/, both reachable only from the VM itself (over Remote Desktop), with an rclone Web GUI shortcut on the desktop. Windows Firewall opens nothing for rclone
  • One rclone configuration file, C:\ProgramData\rclone\rclone.conf, shared by the web GUI and the command line (the machine-wide RCLONE_CONFIG variable points at it), so a remote added in one works in the other
  • Windows Server 2025 Datacenter, Desktop Experience, version 24H2, build 26100.33828, with Microsoft's November 2026 cumulative update. Windows Update ran during the build and reported nothing pending when the image was captured on 1 December 2026
  • The Azure VM agent, so Azure features such as Reset password and Run command work
  • cloudimg's support team is on hand 24 hours a day by email (support@cloudimg.co.uk), with a guaranteed response within 24 hours

Platform: Microsoft Azure (Gen2 Hyper-V; Trusted Launch and NVMe sizes supported) Administrator account: the user name and password you choose when you deploy the VM. There is no default Windows password on this image. rclone home: C:\ProgramData\rclone (configuration, password hash, cache and log). A local folder the web GUI can write to is ready at C:\rclone.

Prerequisites

  1. An Azure subscription
  2. A Remote Desktop client: Remote Desktop Connection (mstsc) on Windows, Windows App (formerly Microsoft Remote Desktop) on macOS, or Remmina on Linux
  3. The public IP address of the machine you will connect from, so you can allow Remote Desktop from that address only
  4. An account with the storage services you want to connect (an S3 bucket and access key, an Azure storage account, a Google or Microsoft account, and so on)

Recommended size: Standard_B2ms (2 vCPUs, 8 GiB memory). For large transfers with many files in parallel, choose a size with more vCPUs and network bandwidth.

Step 1: Deploy the Virtual Machine

Option A: Azure Portal

  1. In the Azure Marketplace, search for "rclone on Windows Server 2025 cloudimg"
  2. Select the offer and click Create
  3. Configure the basics:
  4. Subscription and Resource group: select or create
  5. Virtual machine name and Region: your choice. Choose the region of the storage you will use most, to keep transfers fast and egress charges low
  6. Size: Standard_B2ms recommended
  7. Under Administrator account, enter a Username and a Password that you choose. Azure refuses reserved names such as "administrator", "admin" and "guest"
  8. Under Inbound port rules, allow RDP (3389). Azure then opens port 3389 to the whole internet, so restrict it straight after deployment (step 7)
  9. Click Review + create, then Create
  10. When the deployment finishes, open the VM's Networking (Network settings) page and edit the inbound rule for port 3389: set Source to My IP address (or your office or VPN address range)

rclone needs no inbound port: it only makes outbound connections to your storage services.

Option B: Azure CLI

Accept the offer terms once per subscription, then create the VM with no inbound rules. Leave out --admin-password and the CLI asks for the password, which keeps it out of your shell history:

az vm image terms accept --urn cloudimg1647283583153:rclone-windows-server:default:latest

az vm create \
  --resource-group myResourceGroup \
  --name my-rclone \
  --image cloudimg1647283583153:rclone-windows-server:default:latest \
  --size Standard_B2ms \
  --admin-username <your-admin-name> \
  --public-ip-sku Standard \
  --nsg-rule NONE

Then allow Remote Desktop from your own address only, and read the VM's public IP:

az network nsg rule create \
  --resource-group myResourceGroup \
  --nsg-name my-rcloneNSG \
  --name allow-rdp-from-my-ip \
  --priority 1000 \
  --direction Inbound --access Allow --protocol Tcp \
  --destination-port-ranges 3389 \
  --source-address-prefixes <your-public-ip>/32

az vm show --resource-group myResourceGroup --name my-rclone --show-details --query publicIps -o tsv

Step 2: Connect with Remote Desktop

  1. Open your Remote Desktop client and connect to the VM's public IP address
  2. Windows: run mstsc, enter the IP address and click Connect
  3. macOS: in Windows App, add a PC with the IP address
  4. Linux: in Remmina, create an RDP connection to the IP address
  5. When asked for credentials, sign in as <vm-name>\<your-admin-name> with the password you set at deployment. On Windows, choose More choices, then Use a different account
  6. Accept the certificate warning: the VM uses a self-signed Remote Desktop certificate

Windows may show its privacy settings screen at your first sign-in; choose your settings and click Accept.

rclone's web GUI does not need you to stay signed in: it runs in the background from the moment the VM starts, and transfers you start in it keep running after you disconnect.

Step 3: Check that rclone is running

At the first start of your VM, a one-time task waits for Azure to finish setting the VM up, makes this VM's own web GUI password, starts rclone, and removes itself. It takes about a minute after the VM is first reachable. Open Windows PowerShell with Run as administrator and run:

Test-Path C:\ProgramData\rclone-firstboot.done
Get-ScheduledTask -TaskName rclone | Select-Object TaskName, State, @{n='RunAs';e={$_.Principal.UserId}}
Get-Process rclone -IncludeUserName | Select-Object Id, UserName, Path
Get-NetTCPConnection -State Listen -LocalPort 5572, 5580 | Select-Object LocalAddress, LocalPort
True

TaskName   State RunAs
--------   ----- -----
rclone   Running LOCAL SERVICE

  Id UserName                   Path
  -- --------                   ----
5928 NT AUTHORITY\LOCAL SERVICE C:\Program Files\rclone\rclone.exe

LocalAddress LocalPort
------------ ---------
127.0.0.1         5580
127.0.0.1         5572

True means the first-boot task has finished. rclone runs as NT AUTHORITY\LOCAL SERVICE, and the web GUI (5580) and the remote-control API (5572) listen on 127.0.0.1 only, so they are never reachable from the network, even if you open those ports in Azure.

The API refuses anyone without this VM's password. With it (read from the credentials file into a variable, never typed on the command line), it answers:

$pw = (Select-String -Path C:\ProgramData\rclone-credentials.txt -Pattern '^rclone.gui.password=').Line.Split('=', 2)[1]
Invoke-RestMethod -Method Post http://127.0.0.1:5572/core/version -Credential (New-Object PSCredential('admin', (ConvertTo-SecureString $pw -AsPlainText -Force))) | Select-Object version, os, arch
try { Invoke-RestMethod -Method Post http://127.0.0.1:5572/core/version } catch { $_.Exception.Response.StatusCode.value__ }
version os      arch
------- --      ----
v1.76.0 windows amd64

401

Step 4: Read this VM's web GUI password

The web GUI's user name is admin. Its password was made at the first boot of your VM and saved in a file only administrators can read. In the elevated PowerShell window:

Get-Content C:\ProgramData\rclone-credentials.txt
# rclone on Windows Server 2025 by cloudimg: this VM's own rclone web GUI sign-in (made at first boot).
# Open the web GUI in a browser on this VM (Remote Desktop): the "rclone Web GUI" shortcut on the desktop.
# The GUI (5580) and the remote-control API (5572) listen on 127.0.0.1 only.
# Change the password: see the guide. Guide: https://www.cloudimg.co.uk/guides/rclone-on-windows-server-2025-azure/

rclone.gui.url=http://127.0.0.1:5580/login?url=http%3A%2F%2F127.0.0.1%3A5572%2F&user=admin
rclone.api.url=http://127.0.0.1:5572/
rclone.gui.user=admin
rclone.gui.password=<24 characters, this VM's own>
rclone.config=C:\ProgramData\rclone\rclone.conf
rclone.htpasswd=C:\ProgramData\rclone\htpasswd
rclone.local.folder=C:\rclone

(The password is shown here as a placeholder; your file holds this VM's own.) Keep it safe. To change it, see Step 8.

Step 5: Sign in to the web GUI

Double-click the rclone Web GUI shortcut on the desktop. It opens rclone's sign-in page in Microsoft Edge with the API address and the user name admin already filled in. Paste the password from Step 4 and click Connect.

The dashboard shows your remotes, mounts, serves and running operations, the transfer counters, and the rclone version (v1.76.0, windows, amd64).

The rclone web GUI in Microsoft Edge over Remote Desktop, signed in: the dashboard with no remotes, mounts, serves or operations yet, the transfer counters at zero and rclone v1.76.0 for windows amd64

Explorer browses this server's disks and your remotes, with New Folder, Upload and per-file actions:

The web GUI's Explorer on this server's C: drive, listing its folders, with the local drives and the storage gauge on the left

The web GUI works with this server's files as the LOCAL SERVICE account: it can write to C:\rclone (made for it) and read what that account can read. To let it write elsewhere, see Troubleshooting.

Step 6: Add a storage remote

A remote is one storage account or service that rclone can reach, saved with a name in rclone.conf.

  1. Click Remotes, then Add New Remote
  2. Give the remote a name (for example myblob)
  3. Open type and pick the service, for example Microsoft Azure Blob Storage, Amazon S3 Compliant Storage Providers or Backblaze B2 (type to search)
  4. Fill in the settings the service asks for (an account name and key, an access key and secret, and so on) and save

Remotes > Add New Remote: a name for the remote and the list of storage types, from Microsoft Azure Blob Storage and Azure Files to Backblaze B2 and Box

Services that sign in through a browser (Google Drive, OneDrive, Dropbox and others) need an OAuth token. You can add these with rclone config in an elevated PowerShell window on the VM, signing in through Edge there, or run rclone authorize "<type>" on your own computer and paste the token it prints. See rclone's remote setup documentation.

The new remote appears in Explorer, where you can browse it and copy files between it and this server or another remote.

Step 7: Copy and sync from the command line

rclone is on the PATH and uses the same configuration file as the web GUI. In a PowerShell window (run as administrator, so it can read the configuration):

rclone version
$env:RCLONE_CONFIG
rclone listremotes
rclone v1.76.0
- os/version: Microsoft Windows Server 2025 Datacenter 24H2 24H2 (64 bit)
- os/kernel: 10.0.26100.33828 (x86_64)
- os/type: windows
- os/arch: amd64
- go/version: go1.27.3
- go/linking: static
- go/tags: cmount

C:\ProgramData\rclone\rclone.conf

rclone listremotes prints nothing on a new VM: there are no remotes until you add one (Step 6, or rclone config). Then a remote's paths are written <remote>:<path>, for example rclone copy C:\data myblob:backups\data.

A first copy needs no cloud account at all. This copies a folder to C:\rclone, then checks both sides match by checksum:

New-Item -ItemType Directory C:\rclone-demo -Force | Out-Null; "hello from rclone" | Set-Content C:\rclone-demo\hello.txt
rclone copy C:\rclone-demo C:\rclone\demo --checksum -v
rclone check C:\rclone-demo C:\rclone\demo
rclone lsl C:\rclone\demo
2026/12/01 22:07:02 INFO  : hello.txt: Copied (new)
Transferred:             19 B / 19 B, 100%, 0 B/s, ETA -
Transferred:            1 / 1, 100%

2026/12/01 22:07:02 NOTICE: Config file "C:\\ProgramData\\rclone\\rclone.conf" not found - using defaults
2026/12/01 22:07:02 NOTICE: Local file system at //?/C:/rclone/demo: 0 differences found
2026/12/01 22:07:02 NOTICE: Local file system at //?/C:/rclone/demo: 1 matching files

       19 2026-12-01 22:07:02.107164500 hello.txt

(The Config file ... not found notice only means no remote has been saved yet; the file is created when you add the first one.)

The commands you will use most:

Command What it does
rclone copy <source> <dest> Copies new and changed files; never deletes anything at the destination
rclone sync <source> <dest> Makes the destination match the source, deleting files there that are not in the source. Try it first with --dry-run
rclone move <source> <dest> Copies, then deletes from the source
rclone check <source> <dest> Compares both sides by size and checksum
rclone ls <remote>:<path> Lists files

Add --progress to watch a transfer, and --transfers 8 to move more files in parallel. For a regular job, put the command in a Windows scheduled task. The full command list is in rclone's documentation.

Settings in the web GUI sets the defaults for jobs it starts: parallel transfers, checkers, a bandwidth limit, a transactions-per-second limit and logging.

The web GUI's Settings: Max Parallel Transfers 4, Checkers 8, Bandwidth Limit unlimited and TPS Limit 0, with logging below

Step 8: Change the web GUI password

rclone checks the web GUI password against the hash in C:\ProgramData\rclone\htpasswd. To replace it with a new random password, run this in an elevated PowerShell window. It writes the new hash, puts the new password in the credentials file, and restarts rclone (the files keep their administrator-only permissions):

$chars = [char[]]'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_'
$bytes = New-Object byte[] 24; [Security.Cryptography.RandomNumberGenerator]::Create().GetBytes($bytes)
$pw = -join ($bytes | ForEach-Object { $chars[$_ % 64] })
$sha = [Convert]::ToBase64String([Security.Cryptography.SHA1]::Create().ComputeHash([Text.Encoding]::UTF8.GetBytes($pw)))
Set-Content -LiteralPath C:\ProgramData\rclone\htpasswd -Value "admin:{SHA}$sha" -Encoding ascii
(Get-Content C:\ProgramData\rclone-credentials.txt) -replace '^rclone\.gui\.password=.*', "rclone.gui.password=$pw" | Set-Content C:\ProgramData\rclone-credentials.txt -Encoding ascii
Stop-ScheduledTask -TaskName rclone; Get-Process rclone -ErrorAction SilentlyContinue | Stop-Process -Force; Start-ScheduledTask -TaskName rclone

Then sign in again with the new password from C:\ProgramData\rclone-credentials.txt. rclone also accepts bcrypt and $apr1$ hashes in that file, if you prefer to make one with an htpasswd tool.

Step 9: Keeping Windows and rclone up to date

Windows: Windows Update is on, as in Microsoft's image. Check for updates in Settings > Windows Update, and plan restarts: rclone starts again by itself after a restart.

rclone: download the new rclone-v<version>-windows-amd64.zip from the rclone downloads page, then in an elevated PowerShell window:

Stop-ScheduledTask -TaskName rclone
Get-Process rclone -ErrorAction SilentlyContinue | Stop-Process -Force
Expand-Archive .\rclone-v<version>-windows-amd64.zip -DestinationPath $env:TEMP\rclone-new
Copy-Item $env:TEMP\rclone-new\rclone-v<version>-windows-amd64\rclone.exe 'C:\Program Files\rclone\rclone.exe' -Force
Start-ScheduledTask -TaskName rclone

Server Components

Component Version or setting Where
rclone 1.76.0 (windows-amd64) C:\Program Files\rclone\rclone.exe, on the machine PATH
rclone web GUI rclone-web 1.2.1, built into rclone.exe http://127.0.0.1:5580/, user admin, this VM's own password
Remote-control API 127.0.0.1:5572, HTTP Basic authentication C:\ProgramData\rclone\htpasswd
rclone task \rclone, LOCAL SERVICE, at startup, restarted every minute if it stops Task Scheduler
Configuration RCLONE_CONFIG (machine-wide) C:\ProgramData\rclone\rclone.conf
Windows Server 2025 Datacenter, Desktop Experience, 24H2, build 26100.33828
Microsoft Edge as shipped in Microsoft's image used for the web GUI

Filesystem Layout

Path What it holds
C:\Program Files\rclone\ rclone.exe, LICENSE.txt (rclone, MIT), rclone-web-LICENSE.txt (the web GUI, MIT), README.txt
C:\ProgramData\rclone\ rclone's home: rclone.conf (your remotes, once you add one), htpasswd (the salted hash of the web GUI password), cache\ and rclone.log. SYSTEM and Administrators full control, LOCAL SERVICE modify
C:\ProgramData\rclone-credentials.txt This VM's web GUI user and password. SYSTEM and Administrators only
C:\rclone\ A local folder the web GUI can write to
C:\Users\Public\Desktop\rclone Web GUI.url The desktop shortcut to the sign-in page

rclone.conf holds your storage keys and tokens. It lives in rclone's home folder, which only administrators and LOCAL SERVICE can open.

The OS disk is Microsoft's 127 GB Windows disk (C:, NTFS). On sizes that have an Azure temporary disk (D:), never keep data there: Azure can wipe it when the VM is stopped or moved. For a local staging area, add a managed data disk.

Managing the Service

rclone's web GUI runs as the scheduled task \rclone, not as a Windows service. From an elevated PowerShell window:

# stop rclone (running transfers started from the GUI stop too)
Stop-ScheduledTask -TaskName rclone
Get-Process rclone -ErrorAction SilentlyContinue | Stop-Process -Force

# start it again
Start-ScheduledTask -TaskName rclone

To keep it stopped across restarts, also run Disable-ScheduledTask -TaskName rclone (and Enable-ScheduledTask to undo). The command line works whether the task is running or not.

Scripts and Log Files

File What it is
C:\ProgramData\rclone\rclone.log The web GUI task's log, errors only (rotated at 10 MB, 3 old files kept)
C:\ProgramData\rclone-firstboot.log What the one-time first-boot task did
C:\ProgramData\rclone-firstboot.done Written when the first-boot task finished

On Startup

At the first start of your VM, the scheduled task \cloudimg\rclone first boot (SYSTEM) runs once:

  1. It waits until Azure has finished setting up the VM
  2. It creates C:\ProgramData\rclone fresh, with its own permissions
  3. It makes a random 24-character password for the web GUI user admin, writes only its salted hash to C:\ProgramData\rclone\htpasswd, and the password to C:\ProgramData\rclone-credentials.txt, readable by administrators only
  4. It registers and starts the \rclone task, waits until the API accepts the password, writes C:\ProgramData\rclone-firstboot.done, then deletes itself and its script

It runs only once, so there is nothing to turn off. Every start after that, the \rclone task starts rclone's web GUI.

Troubleshooting

The web GUI does not open, or rclone-firstboot.done is missing

The first-boot task may still be running: give it a minute and check again. Its log shows how far it got:

Get-Content C:\ProgramData\rclone-firstboot.log

The sign-in page says it cannot connect, or the password is refused

  • The user name is admin (lower case). Copy the password from rclone.gui.password= in C:\ProgramData\rclone-credentials.txt
  • Open the GUI from the desktop shortcut, which tells the sign-in page where the API is (http://127.0.0.1:5572/)
  • Check that the task is running (Step 3) and read C:\ProgramData\rclone\rclone.log

"Permission denied" when the web GUI writes to a folder

The web GUI runs as LOCAL SERVICE. Use C:\rclone, or give LOCAL SERVICE modify rights on the folder you choose (here F:\Data on a data disk you added):

icacls 'F:\Data' /grant '*S-1-5-19:(OI)(CI)M'

The command line cannot read the configuration

rclone.conf is readable by administrators and LOCAL SERVICE only. Run PowerShell with Run as administrator.

Forgot the Windows password

Use Reset password on the VM's page in the Azure portal.

Security Recommendations

  • Keep Remote Desktop restricted to your own address (Step 1), or use Azure Bastion
  • Keep the web GUI and API on 127.0.0.1. Anyone who can reach the API with the password can read and change every remote you configure. If you ever need it from elsewhere, put it behind a VPN rather than opening it to the internet
  • Protect rclone.conf. It holds the keys and tokens of your storage accounts. Use keys with only the access rclone needs (for example a storage account SAS or an S3 key limited to one bucket)
  • Keep the credentials file private. It is readable by administrators only; do not copy it to shared places
  • Use --dry-run before rclone sync, which deletes files at the destination that are not in the source
  • Back up C:\ProgramData\rclone\rclone.conf somewhere safe, for example with Azure Backup or disk snapshots

Support

cloudimg's support team is on hand 24 hours a day by email (support@cloudimg.co.uk), with a guaranteed response within 24 hours, covering deployment, Remote Desktop access, the web GUI, adding remotes and upgrades.

rclone is an open source project; cloudimg is not affiliated with or endorsed by the rclone project. Microsoft and Windows Server are trademarks of the Microsoft group of companies. All product and company names are trademarks or registered trademarks of their respective holders. Use of them does not imply any affiliation with or endorsement by them.