Folks:

Is there a way to programatically (via DOS) switch on/off the Firewall built
into Windows XP ?


I have a copy of McAfee Firewall - Personal Edition - installed on my home
PC.

I just wondering if this program allows itself to be controlled (turned
on/off & configured) programmatically ?

If so, how can I programmatically (using DOS) turn on/off my Mcafee Firewall
and do some other basic configurations from the DOS PROMPT or from a batch
file.


Thanks,
John.

Re: Command Prompt of Firewall by Torgeir

Torgeir
Tue Dec 16 15:45:37 CST 2003

JohnNews wrote:

> Folks:
>
> Is there a way to programatically (via DOS) switch on/off the Firewall built
> into Windows XP ?

The VBScript in the link below demonstrates how to enable Internet Connection
Firewall on a connection, change the line
"EveryConnection.EnableInternetFirewall" to
"EveryConnection.DisableInternetFirewall" to let it disable instead of enable.

Platform SDK: Internet Connection Sharing and Internet Connection Firewall
Enabling Internet Connection Firewall (VBScript)
http://msdn.microsoft.com/library/en-us/ics/ics/enabling_internet_connection_firewall_vbscript_.asp

Note that when running this script it will pop up a warning box where the user
needs to select between cancel or continue , and it doesn't look like it is
possible to suppress this warning box...


> I have a copy of McAfee Firewall - Personal Edition - installed on my home
> PC.
>
> I just wondering if this program allows itself to be controlled (turned
> on/off & configured) programmatically ?
>
> If so, how can I programmatically (using DOS) turn on/off my Mcafee Firewall
> and do some other basic configurations from the DOS PROMPT or from a batch
> file.

--
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/scriptcenter



Re: Command Prompt of Firewall by JohnNews

JohnNews
Tue Dec 16 16:57:54 CST 2003

Torgeir:


Just wondering if you have an ONLINE version of the 1328 page Scripting
Guide. Is there a printabl version of this document online , anywhere?


Thanks,
John.

"Torgeir Bakken (MVP)" <Torgeir.Bakken-spam@hydro.com> wrote in message
news:3FDF7D01.2F94E4F2@hydro.com...
> JohnNews wrote:
>
> > Folks:
> >
> > Is there a way to programatically (via DOS) switch on/off the Firewall
built
> > into Windows XP ?
>
> The VBScript in the link below demonstrates how to enable Internet
Connection
> Firewall on a connection, change the line
> "EveryConnection.EnableInternetFirewall" to
> "EveryConnection.DisableInternetFirewall" to let it disable instead of
enable.
>
> Platform SDK: Internet Connection Sharing and Internet Connection Firewall
> Enabling Internet Connection Firewall (VBScript)
>
http://msdn.microsoft.com/library/en-us/ics/ics/enabling_internet_connection_firewall_vbscript_.asp
>
> Note that when running this script it will pop up a warning box where the
user
> needs to select between cancel or continue , and it doesn't look like it
is
> possible to suppress this warning box...
>
>
> > I have a copy of McAfee Firewall - Personal Edition - installed on my
home
> > PC.
> >
> > I just wondering if this program allows itself to be controlled (turned
> > on/off & configured) programmatically ?
> >
> > If so, how can I programmatically (using DOS) turn on/off my Mcafee
Firewall
> > and do some other basic configurations from the DOS PROMPT or from a
batch
> > file.
>
> --
> 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/scriptcenter
>
>



Re: Command Prompt of Firewall by Torgeir

Torgeir
Tue Dec 16 18:37:41 CST 2003

JohnNews wrote:

> Torgeir:
>
> Just wondering if you have an ONLINE version of the 1328 page Scripting
> Guide. Is there a printabl version of this document online , anywhere?

Hi

Nope, you will need to buy the book...

http://www.amazon.com/exec/obidos/ASIN/0735618674/002-7141687-9862444

--
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/scriptcenter