Skip to main content

Python web dashboard for reserving and launching Windows Remote Desktop machines.

Project description

Windows Remote Desktop Dashboard

Python-based browser dashboard for reserving shared Windows RDP machines and pushing per-IP firewall locks so only the reserver can connect.

Install

pip install windows-remote-desktop-dashboard
windows-remote-desktop-dashboard

Open http://127.0.0.1:8000 (the app binds to 0.0.0.0 so other laptops on your LAN can hit it via the host machine's IP).

Development

python -m venv .venv
.\.venv\Scripts\Activate.ps1
pip install -r requirements.txt
uvicorn app.main:app --reload --host 0.0.0.0 --port 8000

Features

  • Refreshed dark dashboard with machine list, sectioned detail card, admin modal, and audit log.
  • SQLite persistence under %LOCALAPPDATA%\WindowsRemoteDesktopDashboard\data by default on Windows.
  • One active reservation per machine, auto-released on expiry.
  • Direct local mstsc.exe launch with a downloadable .rdp fallback.
  • Generated .rdp files default to clipboard, drives, USB, printers, smart cards, audio capture/playback, multi-monitor, dynamic resolution, keyboard hook, and font smoothing all enabled.
  • Live machine detail card with four sections:
    • Status (reservation, firewall lock, allowed IP, auto-release time)
    • Sessions — every row from quser: console (physical) user + every RDP user, each tagged so you can tell who is sitting in front of the machine vs who is remote.
    • Tool activity — remote Get-CimInstance Win32_Process lookup over WinRM showing who is running ETGui.exe, ETOU.exe, MobaXterm.exe, MobaXterm_Personal.exe, and putty.exe.
    • Serial ports — live list of COM ports on the target host.
  • Favorites — per-browser favourite machines (localStorage); favourites are pinned to the top and you can filter the list with "★ Favorites only" or "Free only" chips in the identity bar.
  • Connect button reserves and launches C:\Windows\System32\mstsc.exe in one click.
  • Windows firewall lockdown is ON by default: when a machine is reserved, the target PC's port 3389 is restricted to the reserver's IP and an explicit Block-Other-RDP rule is pushed so native mstsc.exe from anyone else is dropped at the network layer.
  • Reservations record the firewall status (applied / failed / disabled / skipped) and the allowed IP. The "Locked by" pill shows ● user · IP; failure reason is shown as an amber chip.
  • Per-machine Verify lock + Diagnose buttons return structured WinRM/ping/firewall reports.
  • Background quser session checks that never block the page.
  • Admin PIN gate with single browser-session unlock and bulk delete/release/refresh controls.
  • Admin modal split into Settings, Inventory, and Manage Machines tabs.
  • Domain dropdown limited to EU and AP; legacy FU rows are migrated to EU on startup.
  • Aggressive cache busting for static assets (custom no-cache static handler + per-process BUILD_ID query string).

Defaults That Match A Locked-Down Setup

Setting Default Override env var
Admin PIN admin ADMIN_PIN
Bind host 0.0.0.0 RDD_HOST
Browser launch host 127.0.0.1 RDD_BROWSER_HOST
Port 8000 RDD_PORT
Data dir %LOCALAPPDATA%\WindowsRemoteDesktopDashboard\data RDD_DATA_DIR
Default domain EU RDP_DOMAIN
Firewall lock ON RDD_ENFORCE_WINDOWS_FIREWALL=0 to disable at startup
Background session refresh ON RDD_AUTO_REFRESH_SESSIONS=0 to disable
Session refresh interval 30s RDD_SESSION_REFRESH_SECONDS
Firewall PowerShell timeout 20s RDD_FIREWALL_TIMEOUT_SECONDS
Auto-open browser yes RDD_OPEN_BROWSER=0 to disable

You can also toggle the firewall lock at runtime from Admin → Settings → RDP lock ON/OFF. The setting is persisted in SQLite.

Diagnosing "Why Can I Still RDP Directly?"

If you reserve a machine and you (or someone else) can still RDP into it natively, one of these is true:

  1. You are the reserver. The firewall rule allows the reserver's IP through. Test from a DIFFERENT IP than the one shown in the "Locked by ... · <IP>" pill on the dashboard.
  2. Firewall step failed silently — in 0.4.0 it does NOT silently fail anymore. The dashboard now records the firewall status with every reservation and pops up a warning when the lock could not be applied (no WinRM, no admin rights, no IP, etc.). The "Locked by" pill shows the allowed IP, and an amber chip shows the failure reason if it failed.
  3. You ran the dashboard from localhost — in 0.4.0 the server now falls back to its own outbound LAN IP toward the target instead of trying to write 127.0.0.1 into the firewall rule.

Use Admin → Manage Machines → Diagnose on the target to get a structured report: ping, WinRM reachability, dashboard's outbound IP toward the target, and the actual firewall rule state. Use Verify lock to confirm the lock is currently active.

How The Native-RDP Block Works

When RDP lock is ON the dashboard runs the following on the target machine over WinRM, every time a reservation is created:

  1. Tighten every inbound Remote Desktop rule's RemoteAddress filter to the reserver's client IP.
  2. Add RDD-Block-Other-RDP (Block, TCP 3389, RemoteAddress=Any) so anything not matching the reserver IP is dropped.
  3. Add RDD-Block-Other-RDP-Allow (Allow, TCP 3389, RemoteAddress=) so the reserver still gets in.

When the reservation is revoked/released/deleted those two RDD-* rules are removed and the Remote Desktop rules are restored to RemoteAddress=Any.

Requirements for this to actually block native RDP:

  • The dashboard server is Windows and runs as a user that can Invoke-Command on the target PCs (typically domain admin on the targets or WinRM with Enable-PSRemoting).
  • WinRM (winrm quickconfig) is enabled on every target PC.
  • Users open the dashboard with the server's LAN hostname/IP, not localhost, so the dashboard can read their real client IP and not 127.0.0.1.

Use Admin → Manage Machines → Verify lock to check a specific target. If WinRM is misconfigured the dashboard will report the exact PowerShell error.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

windows_remote_desktop_dashboard-0.5.0.tar.gz (31.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file windows_remote_desktop_dashboard-0.5.0.tar.gz.

File metadata

File hashes

Hashes for windows_remote_desktop_dashboard-0.5.0.tar.gz
Algorithm Hash digest
SHA256 f410c63d624685baf27f27b20c3092241707171b52c4ae058490de9f895d28d1
MD5 1666187f99bcb18399e1d236daf4595b
BLAKE2b-256 046c202f73a3fed8b324537536f29f6f071116f3508d34193b4afc15f71328a4

See more details on using hashes here.

File details

Details for the file windows_remote_desktop_dashboard-0.5.0-py3-none-any.whl.

File metadata

File hashes

Hashes for windows_remote_desktop_dashboard-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6d96ff06bbf97ce20fb2fa957f6bddd9cc43195ef3f0cc189d44be4b0df37c92
MD5 59be7c7ee8fa54177f8c8281bc9f566d
BLAKE2b-256 fbaaa5bf21e6537c48d29b21a228dde4a0a3cfbdf20f895af06aa9997d3c2dce

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page