Import Firewall Extract into GPO Using Script


  1. Posts : 9
    ALL
       #1

    Import Firewall Extract into GPO Using Script


    Good Day,


    we are running a lot of Windows 7 based machines which are not on a Domain. I have a script to import the GPO's into the other machine as well as an extract of the firewall rules. I know hou to import this script into windows firewall using "netsh advfirewall", what I want to know is how I can import this into the group policy firewall with a script instead of the windows firewall.



    If it is in GPO it makes it more difficult for the user to change or alter the firewall rules.
      My Computer


  2. Posts : 0
    Windows 7 Ultimate x64
       #2

    I'm not familiar with using scripts to change GPO polices. Here's a whole bunch of Info. on it though. Group Policy Management Console Scripting Samples (Windows)

    I don't know if a Windows firewall script would be compatible with group policy. If it's XML then the settings are most likely different in the script.
      My Computer


  3. Posts : 9
    ALL
    Thread Starter
       #3

    It's a wfw file. You manually import it into group policy into firewall. But I can't find a way to do it with a script yet.
      My Computer


  4. Posts : 2,465
    Windows 7 Ultimate x64
       #4

    As you've mentioned, the "netsh advfirewall import" can import a .wfw into the firewall policy and is 100% command line, hence scriptable.
      My Computer


  5. Posts : 9
    ALL
    Thread Starter
       #5

    Correct, but that pulls the settings into the windows firewall based in control panel. We want it in the firewall section of group policies on gpedit
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 03:59.
Find Us