Skip to main content

Remote Desktop Dashboard — monitor machines and connect via Microsoft Windows App

Project description

Remote Desktop Dashboard

A LAN-only, browser-based dashboard for monitoring and connecting to a fleet of Windows benches over RDP. Operators see who is using each machine, reserve one with a single click, and the dashboard launches Microsoft Windows App (or mstsc) for them. A small PowerShell agent on each bench locally enforces who is allowed to RDP — including blocking local administrators bypassing the "Remote Desktop Users" group, via per-IP firewall rules.


Quick start (server-side, one machine on the LAN)

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

Then open http://localhost:8080/ in a browser on the same machine.

Default port is 8080. The first time you start it, it writes %LOCALAPPDATA%\RemoteDesktopDashboard\admin.env with sensible defaults.


How users on OTHER PCs open the dashboard

The dashboard is just a web server on TCP 8080. Anyone on the same LAN who can reach the server PC can use it — no install on their machine.

  1. On the server PC (the one running the dashboard), allow inbound TCP 8080 through Windows Firewall (run in an elevated PowerShell):

    New-NetFirewallRule -DisplayName "Remote Desktop Dashboard" `
      -Direction Inbound -Protocol TCP -LocalPort 8080 `
      -Action Allow -Profile Any
    
  2. Find the server PC's LAN IP:

    ipconfig | Select-String IPv4
    

    Or click the share icon in the top right of the dashboard — it shows every LAN URL the server is reachable on, with one-click copy.

  3. From any other PC on the LAN, open http://<server-pc-ip>:8080/ in a browser. That's it.

There is no login wall — anyone who can reach this URL can use the dashboard. Admin-only actions (push install, force release, kick others, emergency restore RDP, manage machines, server settings) are gated behind the Admin PIN (see below).


Roles

There are two roles, enforced server-side:

Role What they can do How they are recognized
Operator View status, connect, release their own lock, view audit log Anyone who opens the dashboard URL
Admin All of the above plus push-install agent, force release, kick others, emergency-restore RDP, manage machines, edit server settings Knows the Admin PIN

Most users only ever need to be operators. They just open the dashboard URL, type their name and RDP credentials once (the server remembers them per-name across PCs), and connect.

Admin PIN

The Admin PIN is a single, server-wide secret set by whoever installed the dashboard, in %LOCALAPPDATA%\RemoteDesktopDashboard\admin.env:

RDD_ADMIN_PIN=pick-something-only-you-know

Restart the dashboard after changing it.

The PIN is not shown anywhere in the UI for non-admins. To use it, click the lock icon ("Admin") at the top right and type the PIN. The UI remembers it for the current browser tab (cleared on close) and unlocks admin-only actions. Click the icon again to sign out.


Bench agent (recommended)

For each bench you want to lock, push-install the PowerShell agent from the dashboard:

  1. In admin.env on the server set RDD_BENCH_AGENT_TOKEN=<long-random-string> and restart the dashboard. (This is the shared secret the agents use to authenticate to the dashboard.)
  2. Make sure the dashboard's monitor service account is a local admin on every bench.
  3. Open the dashboard, sign in as admin, open Settings, scroll to Bench Agent, and click Push install next to each bench.

The agent:

  • Manages the local "Remote Desktop Users" group based on the current dashboard lock.
  • Manages a local Windows Firewall rule on TCP 3389 so that, when a bench is locked, only the lock owner's IP can RDP — this blocks even local administrators from RDPing directly (which would otherwise bypass the group check).
  • Kicks unauthorized RDP sessions if they sneak in.
  • Heartbeats back to the dashboard every few seconds.

Emergency: restore native RDP on a bench

If something goes wrong with the firewall rule and you can't get back into a bench, the admin can hit Restore native RDP in the dashboard (detail panel on the right of the Status tab). This tells the agent to:

  1. Remove the custom firewall lock rule.
  2. Re-enable the built-in Windows "Remote Desktop" rules.
  3. Release the dashboard lock.

If the agent is offline, the dashboard also shows a PowerShell snippet you can paste on the bench from an elevated shell. It does the same three things directly.


Configuration (admin.env)

On Windows, %LOCALAPPDATA%\RemoteDesktopDashboard\admin.env. The most relevant keys:

Key Purpose Default
RDD_ADMIN_PIN The Admin PIN gating admin actions unset
RDD_BENCH_AGENT_TOKEN Shared secret the bench agents use to authenticate unset
RDD_BENCH_AGENT_FIREWALL_LOCK If true (default), the agent enforces the per-IP firewall lock true
RDD_MONITOR_DOMAIN/USERNAME/PASSWORD Service account used to poll sessions on each bench unset

Most users never have to edit this file. The dashboard's Settings drawer edits the monitor account fields directly; the file is updated for you.


Troubleshooting

  • Machines show red even though they're online. The dashboard now treats a heartbeating bench agent as proof the machine is online. If you've installed the agent and the dot is still red, open the agent's Diagnose button in Settings → Bench Agent; the most common cause is the agent failed to start (scheduled task RDD-Bench-Agent last-result != 0).

  • Chained RDP still works (RDPing into Bench A, then RDPing from Bench A to Bench B). Make sure the bench agent on Bench B is running v2.1.0 or later (Agent v2.1.0 online in Inventory). The firewall rule is what blocks this; if it's not applied, see Diagnose.

  • "Invalid admin PIN." The PIN is whatever is on the right-hand side of RDD_ADMIN_PIN= in admin.env on the server, with no surrounding quotes and no leading/trailing spaces.

  • I locked myself out of a bench. Click the Admin lock icon → sign in → open the bench's detail panel → Restore native RDP. If the agent is offline, paste the shown PowerShell on the bench.


Development

git clone <this repo>
cd remote_desktop_dashboard
python -m venv .venv
.\.venv\Scripts\Activate.ps1
pip install -e ".[dev]"
pytest

The PowerShell agent and installer scripts ship in src/remote_desktop_dashboard/data/. They are parser-checked on every test run (tests/test_bench_agent_scripts.py) — silent agent crashes from PowerShell parse errors used to be a recurring problem, so that test gates every release.

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

remote_desktop_dashboard-2.10.2.tar.gz (102.9 kB view details)

Uploaded Source

Built Distribution

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

remote_desktop_dashboard-2.10.2-py3-none-any.whl (126.4 kB view details)

Uploaded Python 3

File details

Details for the file remote_desktop_dashboard-2.10.2.tar.gz.

File metadata

File hashes

Hashes for remote_desktop_dashboard-2.10.2.tar.gz
Algorithm Hash digest
SHA256 f3e4d92dac7dfeefdf1479972bb9bd436318be4ee3da7c3f26625475efbe1685
MD5 f704a895c127523c22c2512420a9aeed
BLAKE2b-256 f3afb904d6cbfe2c7988a49de63444e7a9c29ff2dd62922b8ba473cdc648c1bb

See more details on using hashes here.

File details

Details for the file remote_desktop_dashboard-2.10.2-py3-none-any.whl.

File metadata

File hashes

Hashes for remote_desktop_dashboard-2.10.2-py3-none-any.whl
Algorithm Hash digest
SHA256 02280757948ed8020511d3d7b9f726106165da1560768af4ef310289b33a7925
MD5 b74442f549058dbfa473f50938b3e070
BLAKE2b-256 22919cf5f88f20e17b72e9d27cc851d22d64cecd11561ee0b5e36cbf76721d48

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