Last updated
Keep full-screen Remote Desktop (mstsc) sized to the monitor work area, so the host taskbar stays visible and the session renders 1:1.
$ winget install --id martona.mstsfence --exact --version 0.1.2.5Run in Command Prompt, PowerShell, or Windows Terminal. Prompts for any agreements.
mstsfence uses MSIX. The silent install switches are (no switches needed).
Add-AppxPackage -Path .\mstsfence-windows-amd64.msix
For Intune admins
Automated application patching for Microsoft Intune. Pckgr keeps a curated library of 1,000+ apps continuously up-to-date in your tenant via Microsoft Graph - no manual repackaging, no chasing vendor sites.
Start free 30-day trialNo credit card required.
mstsfence makes mstsc.exe, in full-screen mode, size itself to the monitor's work area
instead of the whole monitor -- so the host taskbar stays visible (host taskbar on the
bottom, session taskbar on top) and the remote desktop renders 1:1, with no scaling or
letterboxing.
A small tray controller installs a global hook that the OS maps into mstsc however it was
launched (.rdp file, jump list, Start menu); outside mstsc it does nothing. Inside mstsc it
clamps the monitor-geometry APIs the client reads to the work area, tracking DPI and
resolution changes live. An optional dark-mode pass and a host display-scaling (DPI)
override are included. Staying on stock mstsc keeps all of its credential UX, Credential
Manager integration, and certificate/consent dialogs.
Copy a command tailored to that specific architecture, type, and scope - useful when winget would otherwise pick a different default.
No known CVEs for mstsfence.
Coverage is best-effort and depends on a winget package mapping to an NVD CPE entry. Absence here is not a guarantee of safety.
More from martona or browse remote-desktop, rdp, mstsc.