• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 6614
  • Last Modified:

how to Disable windows 7 firewall service via command line or register

I need to disable the firewall service via command or registry entry
1 Solution
Does this work?

netsh firewall set opmode disable

Open in new window

Harry_NZAuthor Commented:
this does not disable the service.
Was there an error?  Did you run your command prompt as administrator?
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Harry_NZAuthor Commented:
No error , it was successful  but like i said it did not STOP the windows firewall service.

I found another command

sc config MpsSvc start= disabled     testing this now .
Maybe this?

 netsh firewall set opmode mode = disable

Open in new window

There is also this one too:

netsh advfirewall set profiles state off

Open in new window

Where "profiles" is AllProfiles, CurrentProfile, DomainProfile, PrivateProfile, or PublicProfile.
best way to disable firewall follow that steps:

At the command prompt, type the following command:

>netsh advfirewall set profiles state off

2nd option
1. Click Start, click Control Panel, click Network and Internet, and then under Windows Firewall, click Turn Windows Firewall on or off.
2. On the General tab of the Windows Firewall Settings dialog box, select Off (not recommended), and then click OK.

Disable firewall service in computer management
open the Start Menu, type services.msc  in the search box, press Enter
and disable window firewall in it...

Registry path is
HKEY_LOCAL_MACHINE \ SOFTWARE \ Policies \ Microsoft \ WindowsFirewall.

Rob MinersCommented:
To disable the Firewall Service, in an elevated Command Prompt window, enter the following commands:

net stop MpsSvc

sc config mpssvc start= Disabled

To enable

sc config mpssvc start= Auto

net start MpsSvc


C:\>net stop MpsSvc
The Windows Firewall service is stopping.
The Windows Firewall service was stopped successfully.

C:\>sc config mpssvc start= Disabled
[SC] ChangeServiceConfig SUCCESS

C:\>sc config mpssvc start= Auto
[SC] ChangeServiceConfig SUCCESS

C:\>net start MpsSvc
The Windows Firewall service is starting.
The Windows Firewall service was started successfully.
QlemoBatchelor and DeveloperCommented:
The Windows Firewall Service is integral part of the TCP stack starting with Vista, and you should NOT disable it. Or expect strange behaviour of network operations.
All you should do is switch the firewall off in the active or all profiles.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now