/build/static/layout/Breadcrumb_cap_w.png

How do I make a script to turn off firewall notifications?

I am attempting to create a script that will turn off the firewall notifications in Windows 7. We are now using Symantec which is handling the software firewall on our windows machines, but Windows does not recognize it as being turned on, so I am getting a ton of reports of errors popping up. The resolution for this is to simply turn off firewall notifcations, since it is a false alarm.

 

I have googled the command from command line to do this, but none of them seem to work. I have tried:

netsh firewall set notifications mode = disable profile = allprofiles

and

netsh advfirewall firewall set notification mode = disable profile = all


Neither of these work, and these are the only commands I have been able to find. Has anyone else tried this or found a way to do this from the Kbox?


0 Comments   [ + ] Show comments

Answers (3)

Posted by: WGM_Jeff 11 years ago
4th Degree Black Belt
0

We use a batch script that does it. The batch script is below. It has to be ran from an elevated command prompt.

@echo off

 

netsh advfirewall set domainprofile state off

netsh advfirewall set privateprofile state off 

netsh advfirewall set publicprofile state off


Comments:
  • you are disabling the firewall with these commands, he is trying to stop the notification from action center telling him the firewall is off even though symantec is installed - SMal.tmcc 11 years ago
  • Its actually a registry edit to get rid of the alerts all together, which I have found, but I did not mark on here because Kace still cannot run the script correctly, or I am doing it wrong. If I ever get it to working I will update this thread. - erikjd21 11 years ago
    • post the reg edit you found as new question on how to get it to work as a kscript, there is a lot of talent on this site and you may get an answer. - SMal.tmcc 11 years ago
  • Sorry, I didn't read that correctly. Can you export the reg file on a machine that you changed manually and then run that through KACE? - WGM_Jeff 11 years ago
    • If it is the same way symantec says to do it you can under scripting - configuration policy - enforce registry settings.
      they say change this key and then copy it to the other machines
      [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Action Center\Checks\{E8433B72-5842-4d43-8645-BC2C35960837}.check.101 - SMal.tmcc 11 years ago
  • Thank you, I will try that, but I wish that Symantec would address this rather than give instructions on how to hide it. - erikjd21 11 years ago
    • like the guy on symantec's sites said if the firewall does not work you will never know since you killed the notification engine.
      when you create the policy create a reg merge file and just remove the "Windows Registry Editor Version 5.00" line and paste the rest in the window. - SMal.tmcc 11 years ago
  • I use the same 3 lines in my K2000 scripted installs at the begining so nothing is blocked durring the process. The opposite command gets run as the last item on postinstallations tasks so that the firewall is back on. - BigRed2012 11 years ago
Posted by: SMal.tmcc 11 years ago
Red Belt
0

Action center is the likely cause and it get it's info thru wmi  Look into turning off action center or fixing the bug between action center and symantec.


Comments:
  • Ive even talked with Symantec, the bug is within the Windows OS, "Its recommended that we simply disable notifications", I dont like the fix either, because by disabling them it fails to alert the user if the firewall is failing. I consider it a bad security risk, but compared to training my users to ignore alerts, its the lesser of the two evils. - erikjd21 11 years ago
Posted by: ttrash 11 years ago
White Belt
0

 netsh firewall set notifications mode = disable profile = allprofiles

The syntax supplied for this command is not valid. Check help for the correct syntax.

 

set notifications

      [ mode = ] ENABLE|DISABLE

      [ [ profile = ] CURRENT|DOMAIN|STANDARD|ALL ]

 

  Sets firewall notification configuration.

 

  Parameters:

 

  mode - Notification mode.

      ENABLE  - Allow pop-up notifications from firewall.

      DISABLE - Do not allow pop-up notifications from firewall.

 

  profile - Configuration profile (optional).

      CURRENT  - Applies to the active profile.  Active profile can be domain,

                 standard (i.e. private), or public. (default).

      DOMAIN   - Applies to the domain profile.

      STANDARD - Applies to the standard (i.e. private) profile.

      ALL      - Applies to the domain and standard (i.e. private) profile.

                 Does not apply to the public profile.

 

  Examples:

 

      set notifications ENABLE

      set notifications mode=DISABLE

 
 
TURN THE POWER ON
 
at VERY FIRST LOOK i see "profile = allprofiles" not being logical
 
and ...
netsh firewall set notifications mode = disable profile = all
 
is working VERY PHOOCKING MUCH !
 

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

View more:

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ