π ~1 min read
Table of contents
Symptom & Impact
Remote administration is unavailable because RDP sessions cannot connect.
Environment & Reproduction
After firewall baseline updates or profile drift to Public.
Test-NetConnection localhost -Port 3389
Get-NetFirewallRule -DisplayGroup 'Remote Desktop'
Root Cause Analysis
RDP listener is active but inbound firewall rule is disabled or wrong profile scoped.
Quick Triage
Check termservice status, listener port, and effective firewall profile.
Get-Service TermService
Get-NetConnectionProfile
Step-by-Step Diagnosis
Review firewall logs and rule precedence from ActiveStore.
Get-NetFirewallRule -PolicyStore ActiveStore | Where-Object DisplayGroup -eq 'Remote Desktop'
Get-WinEvent -LogName 'Microsoft-Windows-Windows Firewall With Advanced Security/Firewall' -MaxEvents 80

Solution β Primary Fix
Enable Remote Desktop rule group for Domain profile and refresh policy.
Still having issues? Our Network Design team can diagnose and resolve this for you. Get in touch for a free consultation.
Enable-NetFirewallRule -DisplayGroup 'Remote Desktop'
Set-NetFirewallRule -DisplayGroup 'Remote Desktop' -Profile Domain -Action Allow
gpupdate /force

Solution β Alternative Approaches
Create narrowly scoped allow rule for management subnet.
New-NetFirewallRule -DisplayName 'Allow RDP Mgmt' -Direction Inbound -Protocol TCP -LocalPort 3389 -RemoteAddress 10.0.0.0/16 -Action Allow
Verification & Acceptance Criteria
RDP responds from authorized source and unauthorized ranges stay blocked.
Test-NetConnection server01.contoso.local -Port 3389
Rollback Plan
Disable temporary allow rule if broad exposure is detected.
Disable-NetFirewallRule -DisplayName 'Allow RDP Mgmt'
Prevention & Hardening
Audit firewall policy changes and enforce change review for remote-access ports.
Get-NetFirewallRule -DisplayGroup 'Remote Desktop' | Select DisplayName,Enabled,Profile
Related Errors & Cross-Refs
Related to NLA failures and Remote Desktop Services misconfiguration.
Related tutorial: View the step-by-step tutorial for Windows Server 2016.
View all Windows Server 2016 tutorials on the Tutorials Hub β
Browse all common problems & solutions on the Tutorials Hub.
References & Further Reading
Microsoft Remote Desktop and Windows Firewall administration documentation.
Need Expert Help?
If you cannot resolve this yourself, our team offers hands-on Server Management, Managed IT Services, and flexible Support Plans. Contact us today β we respond within one business day.