Start the Windows Firewall service (MpsSvc) and its RPC dependencies from an elevated Command Prompt, because Windows Firewall with Advanced Security cannot operate while these required services are stopped or disabled.^1^
1. Restore and test the core services
First take a system-state or OS-disk backup. Then run:
sc config RpcEptMapper start= auto
sc start RpcEptMapper
sc config RpcSs start= auto
sc start RpcSs
sc config MpsSvc start= auto
sc start MpsSvc
sc query RpcEptMapper
sc query RpcSs
sc query MpsSvc
The expected result is STATE: 4 RUNNING for all three services. If MpsSvc starts, enable the three firewall profiles:
Set-NetFirewallProfile -Profile Domain,Private,Public -Enabled True
Get-NetFirewallProfile | Select-Object Name,Enabled
All profiles should report Enabled : True. This is the documented command-line method for enabling Windows Firewall.^2^
Also reopen wf.msc. If it loads normally, the immediate service failure is resolved.
Reinstalling Microsoft Defender Antivirus does not test these firewall service dependencies, so there is no reason to repeat the reinstall.
2. If MpsSvc still fails
Windows Firewall with Advanced Security also requires these services to be running:
- Base Filtering Engine (
BFE) - Group Policy Client
- IKE and AuthIP IPsec Keying Modules
- IP Helper
- IPsec Policy Agent
- Network Location Awareness
- Network List Service
- Windows Defender Firewall (
MpsSvc)
Check their states in services.msc, or run:
Get-Service BFE,gpsvc,IKEEXT,iphlpsvc,PolicyAgent,NlaSvc,netprofm,MpsSvc |
Format-Table Name,Status,StartType
Start any stopped service without changing its startup type arbitrarily. The complete dependency list is documented in Microsoft’s Windows Server firewall troubleshooting guidance.^3^
Record the exact error returned by:
sc start MpsSvc
That result distinguishes a disabled dependency from access-denied, timeout, or damaged configuration conditions.
3. Check policy before changing the firewall configuration
A domain or local security policy can configure system services. Generate the computer’s Resultant Set of Policy:
gpresult /h C:\Temp\gpresult.html
Review the report for settings under:
- Computer Configuration → Windows Settings → Security Settings → System Services
- Computer Configuration → Windows Settings → Security Settings → Windows Defender Firewall with Advanced Security
gpresult displays the resulting policy settings enforced on the computer.^4^
If a domain GPO disables MpsSvc or a required dependency, correct the GPO rather than repeatedly changing the local service. Do not treat ordinary firewall profile or rule settings as proof that the service itself was intentionally disabled.
4. Reset only if the firewall policy registry is missing or corrupted
Check the policy key:
reg query "HKLM\SYSTEM\CurrentControlSet\Services\SharedAccess\Parameters\FirewallPolicy" /s
If the key is missing or clearly corrupted, export the existing configuration and then reset it:
netsh advfirewall export C:\Temp\firewall-before-reset.wfw
netsh advfirewall reset
sc start MpsSvc
netsh advfirewall set allprofiles state on
A reset restores default firewall configuration and can remove custom local rules, so retain the export and confirm that required management and application traffic will remain available. Microsoft documents both the configuration check and netsh advfirewall reset for a firewall service that will not start.^1^ The export/reset syntax is documented separately.^5^
5. If the service remains unavailable
Collect a Windows Filtering Platform trace before opening a Microsoft support case:
- Download and extract TSS to
C:\tss. - Open elevated PowerShell in that directory.
- Run:
Set-ExecutionPolicy -Scope Process -ExecutionPolicy RemoteSigned
.\TSS.ps1 -Scenario NET_WFP
- Reproduce the
wf.mscerror. - Enter
Yto stop collection. - Retrieve the ZIP from
C:\MS_DATA.
TSS requires local administrator rights; the process-scoped execution-policy change expires when that PowerShell session closes.^3^
References