π ~1 min read
Table of contents
Symptom & Impact
Remote administration, file copy jobs, and backup software fail after baseline GPO updates.
Environment & Reproduction
Domain-joined Windows Server 2019 hosts receiving restrictive firewall GPO changes.
Get-NetFirewallProfile
Test-NetConnection server01.contoso.local -Port 445
gpresult /r
Root Cause Analysis
Inbound SMB rule groups were disabled or overridden by higher-precedence policy.
Quick Triage
Check effective firewall rules and profile category.
Get-NetConnectionProfile
Get-NetFirewallRule -DisplayGroup 'File and Printer Sharing' | Select DisplayName,Enabled,Profile
Step-by-Step Diagnosis
Correlate GPO source with blocked traffic events to isolate policy object causing denial.
Get-NetFirewallRule -PolicyStore ActiveStore | Where-Object DisplayName -match 'SMB|File and Printer'
Get-WinEvent -LogName 'Microsoft-Windows-Windows Firewall With Advanced Security/Firewall' -MaxEvents 100

Solution β Primary Fix
Enable required SMB rules for the domain profile and refresh policy.
Still having issues? Our IT Solutions & Services team can diagnose and resolve this for you. Get in touch for a free consultation.
Enable-NetFirewallRule -DisplayGroup 'File and Printer Sharing'
Set-NetFirewallRule -DisplayGroup 'File and Printer Sharing' -Profile Domain -Action Allow
gpupdate /force

Solution β Alternative Approaches
Create scoped allow rule for management subnets if broad group enablement is not approved.
New-NetFirewallRule -DisplayName 'Allow SMB from Mgmt' -Direction Inbound -Protocol TCP -LocalPort 445 -RemoteAddress 10.10.0.0/16 -Action Allow -Profile Domain
Verification & Acceptance Criteria
SMB port tests succeed and remote sessions can be established.
Test-NetConnection server01.contoso.local -Port 445
Get-SmbSession
Rollback Plan
Disable temporary rule and restore previous GPO link order if exposure exceeds policy.
Disable-NetFirewallRule -DisplayName 'Allow SMB from Mgmt'
Prevention & Hardening
Test firewall GPO changes in a staging OU before broad rollout.
Get-GPOReport -All -ReportType Html -Path C:Tempgpo-report.html
Related Errors & Cross-Refs
Usually paired with WinRM and RPC management failures after hardening changes.
Related tutorial: View the step-by-step tutorial for Windows Server 2019.
View all Windows Server 2019 tutorials on the Tutorials Hub β
Browse all common problems & solutions on the Tutorials Hub.
References & Further Reading
Microsoft Learn: Windows Defender Firewall policy management in domain environments.
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.