T The Triage ManualTechnical Guides for IT Emergencies
P3 · Remote Access & VPN

RDS Terminal Server Accumulates Orphaned 'Inactive TS Ports' from RD Easy Print Redirection

On Windows RDS/RDP terminal servers using RD Easy Print for local printer redirection, orphaned print ports labelled 'Inactive TS Ports' accumulate over time. These ports are created per user session for redirected printers but fail to clean up when sessions end, causing a growing list of stale port entries. Left unaddressed, excessive orphaned ports degrade print spooler stability and server performance. Resolution involves stopping the spooler, removing orphaned ports via Print Management MMC or registry cleanup, and implementing scheduled maintenance.

Indicators

Likely causes

Diagnostic steps

  1. Open Print Management MMC: printmanagement.msc → expand Print Servers → [server name] → Ports. Count ports labelled 'Inactive TS Port'.
    Quantify the number of orphaned Inactive TS Ports currently present to assess the scope of the problem.
  2. Run 'qwinsta' or 'query session' from an elevated command prompt to enumerate all active RDP/RDS sessions.
    Cross-reference active sessions against the Inactive TS Ports list to identify which ports are genuinely orphaned.
  3. Open Event Viewer → Applications and Services Logs or System log, filter by source 'PrintSpooler'. Review errors/warnings around session disconnect times.
    Determine whether spooler errors are logged at session teardown that explain why port cleanup is failing.
  4. Inspect registry: HKLM:\SYSTEM\CurrentControlSet\Control\Print\Monitors and HKLM:\SYSTEM\CurrentControlSet\Control\Print\Printers for residual TS port entries.
    Confirm the persistence mechanism of orphaned ports and identify registry artifacts requiring cleanup.

Resolution path

Prevention

Tools

References

RDSRDPterminal serverprint spoolerRD Easy Printprinter redirectionTS portsinactive TS portsorphaned portsWindows Serverprint managementsession cleanup