Error message when you try to start Windows Firewall

3:24:00 PM |


When you try to start Windows Firewall, you receive the following error if the Firewall service is disabled or if your computer is infected with malware:


To resolve this issue, scan for and remove malware by following the steps in Method 1. If that doesn't work, start the Windows Firewall service and other services manually by using the steps in Method 2 and Method 3.

Method 1: Scan for malware

If you haven't scanned your computer for viruses or malware recently, we strongly recommend that you do this. You can use the Microsoft Safety Scanner to remove malware from your computer. To do this, follow these steps:
  1. Go to the following Microsoft website:
  2. Click Download Now. Follow the instructions to download and install the Microsoft Safety Scanner. When you are prompted, save the file to your desktop.
  3. When the installation is complete, go to your desktop and double-click the Microsoft Safety Scanner icon. It may be listed as msert.
  4. Click the Accept all terms of the preceding license agreement check box, and then click Next two times.

  5. Click Quick Scan, then click Next.

  6. The Microsoft Safety Scanner will scan your computer and remove all malware.
  7. Click Start, and then typeWindows Firewallin the Search programs and filesbox (Windows 7) or in the Start search box (Windows Vista).
  8. Click Windows Firewall.
  9. In the navigation pane (left pane) of Control Panel, click Turn Windows Firewall on or off.

  10. Click Turn on Windows Firewall for each network location, and then click OK.

If you still receive error 0x8007042c when you try to turn on Windows Firewall, go to Method 2.

Method 2: Start the Windows Firewall Services manually

You can start the Windows Firewall services manually and make sure that they start automatically in the future. To do this, follow these steps:
  1. Click Start , and then type Services in the Search box.
  2. Right-click Services. and then click Run as administrator. If you are prompted, enter your administrator user name and password, and then press Enter.
  3. Scroll until you see Windows Firewall, and then double-click Windows Firewall.

  4. Click the Startup type box,and then click Automatic.

  5. If Service status is Stopped, click Start.
  6. Click Apply, and then click OK.
  7. Scroll until you see Base Filtering Engine, and then double-click Base Filtering Engine.
  8. If Service status is Stopped, click Start.

  9. Click Apply, and then click OK.
  10. Restart Windows and confirm whether Windows Firewall is enabled.
If you still receive error 0x8007042c when you try to turn on Windows Firewall, go to Method 3.

Method 3: Start associated services

To stop and then restart these services by using a batch file, follow these steps:
  1. Click Start, type Notepad in the Search box and then click Notepad in the programs list.
  2. Select the following text, right click the selected text, and then click Copy. Right-click anywhere in the Notepad window, and then click Paste.

    sc config MpsSvc start= auto
    sc config KeyIso start= auto
    sc config BFE start= auto
    sc config FwcAgent start= auto
    net stop MpsSvc 
    net start MpsSvc 
    net stop KeyIso 
    net start KeyIso
    net start Wlansvc
    net start dot3svc
    net start EapHostnet 
    net stop BFE 
    net start BFE
    net start PolicyAgent
    net start MpsSvc
    net start IKEEXT
    net start DcaSvcnet 
    net stop FwcAgent 
    net start FwcAgent
  3. In Notepad, Click File, click Save As, and then type in the File name box
  4. Click the Save as type box, and then click All Files (*.*).
  5. In the left pane, click Desktop, and then click Save.
  6. On the File menu, click Exit.
  7. On your desktop, right-click the Repair.bat file that you saved in step 5, and then click Run as administrator.

    Important If you are prompted for confirmation to stop a service, press Y on the keyboard, and then press Enter.
  8. Try to start Windows Firewall again. If you can start Windows Firewall, delete the Repair.bat file. To do this, right-click Repair.bat, click Delete, and then click Yes.
If you still receive error 0x8007042c when you try to start Windows Firewall, you may want to contact Microsoft Consumer Security Support Center. To do this, go to