Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2013-06-17
9
Medium Priority
?
5,287 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
Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

 

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 2000 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 71

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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

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

Question has a verified solution.

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

When you try to share a printer , you may receive one of the following error messages. Error message when you use the Add Printer Wizard to share a printer: Windows could not share your printer. Operation could not be completed (Error 0x000006…
There are many software programs on offer that will claim to magically speed up your computer. The best advice I can give you is to avoid them like the plague, because they will often cause far more problems than they solve. Try some of these "do it…
This Micro Tutorial will give you a basic overview of Windows Live Photo Gallery and show you various editing filters and touches to photos you can apply. This will be demonstrated using Windows Live Photo Gallery on Windows 7 operating system.
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…

715 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