Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Update > windows firewall config settings exportable?

Reply
Thread Tools Display Modes

windows firewall config settings exportable?

 
 
elmurado
Guest
Posts: n/a

 
      10-12-2004
I want to setup a test machine with the firewall tweaked just right and then
export the settings for open ports etc to othermachines? Is this poss?
i'm trying to use filemon to see which files it writes to etc but can't seem
to figure it out.

Or are there script based ways of doing this?
 
Reply With Quote
 
 
 
 
Torgeir Bakken \(MVP\)
Guest
Posts: n/a

 
      10-12-2004
elmurado wrote:

> I want to setup a test machine with the firewall tweaked just right and then
> export the settings for open ports etc to othermachines? Is this poss?
> i'm trying to use filemon to see which files it writes to etc but can't seem
> to figure it out.


There is no support for export/import settings in the Windows XP
Firewall.


> Or are there script based ways of doing this?


You can create a batch file and run netsh.exe commands there to
configure the firewall.

The netsh.exe syntax is documented in WF_XPSP2.doc.

WF_XPSP2.doc "Deploying Windows Firewall Settings for Microsoft
Windows XP with Service Pack 2" is downloadable from
http://www.microsoft.com/downloads/d...d-499f73a637d1


--
torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of
the 1328 page Scripting Guide:
http://www.microsoft.com/technet/scr...r/default.mspx
 
Reply With Quote
 
elmurado
Guest
Posts: n/a

 
      10-12-2004
Thanks Torgeir. Is there any way of 'grabbing' those settings? ie do they
exist somewhere in a form which can be captured.
Another question, is there a way of using runas on the firewall or is it
impossible because it is a service?

"Torgeir Bakken (MVP)" wrote:

> elmurado wrote:
>
> > I want to setup a test machine with the firewall tweaked just right and then
> > export the settings for open ports etc to othermachines? Is this poss?
> > i'm trying to use filemon to see which files it writes to etc but can't seem
> > to figure it out.

>
> There is no support for export/import settings in the Windows XP
> Firewall.
>
>
> > Or are there script based ways of doing this?

>
> You can create a batch file and run netsh.exe commands there to
> configure the firewall.
>
> The netsh.exe syntax is documented in WF_XPSP2.doc.
>
> WF_XPSP2.doc "Deploying Windows Firewall Settings for Microsoft
> Windows XP with Service Pack 2" is downloadable from
> http://www.microsoft.com/downloads/d...d-499f73a637d1
>
>
> --
> torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
> Administration scripting examples and an ONLINE version of
> the 1328 page Scripting Guide:
> http://www.microsoft.com/technet/scr...r/default.mspx
>

 
Reply With Quote
 
Torgeir Bakken \(MVP\)
Guest
Posts: n/a

 
      10-13-2004
elmurado wrote:

> Thanks Torgeir. Is there any way of 'grabbing' those settings?
> ie do they exist somewhere in a form which can be captured.


You can display the settings like this (in a command prompt):

netsh.exe firewall show config

For a more detailed listing:

netsh.exe firewall show config verbose = ENABLE

To a file:
netsh.exe firewall show config verbose = ENABLE >fw_cfg.txt


> Another question, is there a way of using runas on the firewall
> or is it impossible because it is a service?


It might work to run netsh.exe with runas.

For the GUI configuration, this might work with runas:

control.exe firewall.cpl


--
torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of
the 1328 page Scripting Guide:
http://www.microsoft.com/technet/scr...r/default.mspx
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows Firewall Settings CuzIdidit Windows Vista Security 1 09-09-2007 02:33 PM
Vista Advanced Firewall Config magic144 Windows Vista General Discussion 2 08-21-2007 01:08 PM
xp2 firewall and config file for export to other pcs elmurado Windows Update 1 10-12-2004 07:36 AM
xp2 firewall config file and export to another pc elmurado Windows Update 1 10-12-2004 07:36 AM
xp2 firewall and config file to export to otherpc? elmurado Windows Update 1 10-12-2004 07:36 AM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59