MOUNTMATE

A robust, hardened PowerShell automation suite built for reliable management, automatic drive re-connection, and background persistence of Rclone cloud mounts on Windows.

What is MountMate?

MountMate is an automated Windows CLI toolkit built in PowerShell. It wraps around Rclone to convert remote cloud storage services (Google Drive, OneDrive, S3, SFTP, Mega, etc.) into seamlessly mounted Windows drive letters (e.g., H:, X:).

It eliminates standard Windows drive mounting instabilities, privilege elevation issues, and background process crashes by implementing thread-safe configurations, self-healing background watchdogs, and encrypted configuration backups.

Key Capabilities

Prerequisites & Downloads

Ensure the following software dependencies are installed before running MountMate:

Installation & Setup

  1. Install WinFsp with default features enabled.
  2. Download Rclone and place rclone.exe in a system path (e.g., C:\Program Files\rclone\ or system PATH).
  3. Open PowerShell or CMD and configure your cloud storage providers:
    rclone config
  4. Download MountMate.zip, extract it, and place MountMate.ps1 into C:\Scripts\MountMate.ps1.
  5. Launch MountMate using either of the following methods:
    • Right-Click Execution (Easy): Right-click on MountMate.ps1 in File Explorer and select "Run with PowerShell".
    • Console Execution (Bypass Policy): Open PowerShell with Administrator privileges and execute:
      powershell -ExecutionPolicy Bypass -File "C:\Scripts\MountMate.ps1"

Interactive Menu Options Breakdown

MountMate includes 15 integrated console management functions:

Google Drive OneDrive Amazon S3 SFTP / SSH Mega.nz Dropbox WebDAV SMB / CIFS
[1]
Mount a Cloud Remote

Tests remote connection integrity, selects an available drive letter, creates background launch batch/VBS wrappers, and mounts the cloud drive.

[2]
Edit Existing Mount

Allows on-the-fly modifications to drive letters or volume labels for existing configurations without corrupting active scripts.

[3]
Unmount & Clean Up Remote

Terminates targeted Rclone background processes, purges residual network maps, and unregisters scheduled startup tasks.

[4]
View Active Drives & Status

Executes non-blocking asynchronous health checks against all configured drive letters to display real-time ONLINE or OFFLINE status.

[5]
Mount All Configured Drives

Iterates through all configured remotes in the JSON registry and mounts those that are currently disconnected.

[6]
Unmount All Active Drives

Performs a graceful bulk process termination and network cleanup across all managed mounted drives simultaneously.

[7]
Global Parameters & Settings

Configures default VFS caching behaviors, buffer limits, polling intervals, and watchdog timeout intervals stored in mounts.json.

[8]
Update Rclone Executable

Triggers Rclone's internal self-updater (rclone selfupdate) to safely upgrade binaries to the latest stable release.

[9]
Run System Health Diagnostic

Verifies Rclone execution paths, WinFsp driver services, Task Scheduler status, cache directories, and rclone.conf integrity.

[10]
Live Stream Log Debugger

Attaches a live tail to C:\Scripts\manager.log to monitor background operations, warnings, and error outputs in real time.

[11]
Clear Local VFS Cache

Calculates the current cache size on disk and allows safe purging of cached binary data to reclaim local disk storage.

[12]
Backup / Restore Config

Packages scripts, drive profiles, and Rclone credentials into an AES-256 encrypted package for easy migration and recovery.

[13]
Start Drive Watcher (Console)

Runs a live foreground watchdog loop that actively checks drive readiness and auto-reconnects dropped connections.

[14]
Manage Background Task

Installs or removes a hidden Windows Scheduled Task that executes the MountMate Watcher Daemon automatically at system logon.

[15]
Auto-Discover & Import

Scans running system processes for unmanaged active Rclone drive mounts and registers them into MountMate's configuration file.

Rclone Documentation & Help Files

For custom tuning of parameters in Menu Option [7], consult the official documentation: