Solved

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

Posted on 2013-06-17
9
4,773 Views
Last Modified: 2013-06-18
I need to disable the firewall service via command or registry entry
0
Comment
Question by:Harry_NZ
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
9 Comments
 
LVL 14

Expert Comment

by:Tribus
ID: 39255213
Does this work?

netsh firewall set opmode disable

Open in new window

0
 

Author Comment

by:Harry_NZ
ID: 39255218
this does not disable the service.
0
 
LVL 14

Expert Comment

by:Tribus
ID: 39255228
Was there an error?  Did you run your command prompt as administrator?
0
Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

 

Author Comment

by:Harry_NZ
ID: 39255230
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 .
0
 
LVL 14

Expert Comment

by:Tribus
ID: 39255231
Maybe this?

 netsh firewall set opmode mode = disable

Open in new window

0
 
LVL 14

Expert Comment

by:Tribus
ID: 39255235
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.
0
 
LVL 6

Expert Comment

by:xeroxzerox
ID: 39255236
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.


3rd
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.

Regards,
xerox
0
 
LVL 14

Accepted Solution

by:
Rob Miners earned 500 total points
ID: 39255264
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

eXample:


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.
0
 
LVL 70

Expert Comment

by:Qlemo
ID: 39255397
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.
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
By default the complete memory dump option is disabled in windows . If we want to enable the complete memory dump for a diagnostic purpose, we have a solution for it. here we are using the registry method to enable this.
This Micro Tutorial will teach you how to change your appearance and customize your Windows 7 interface to your unique preference. This will be demonstrated using Windows 7 operating system.
This Micro Tutorial will give you basic overview of the control panel section on Windows 7. It will depth in Network and Internet, Hardware and Sound, etc. This will be demonstrated using Windows 7 operating system.

630 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question