Jump to content

Firewall start/stop with registry-keys


Recommended Posts

Guest Cornelius Wasmund
Posted

Hello Windows XP Community,

 

i want to start and stop the windows internal firewall by the registry

with delphi.

I can start the Firewall, but not stop ... so i change the follow reg-keys:

 

 

start: (works)

******************************************************************

rootkey=HKEY_LOCAL_MACHINE

 

SYSTEM\CurrentControlSet\Services\SharedAccess\Parameters\FirewallPolicy\StandardProfile\

EnableFirewall dword(01000000)

 

SYSTEM\ControlSet001\Services\SharedAccess\Parameters\FirewallPolicy\StandardProfile\

EnableFirewall dword(01000000)

******************************************************************

 

 

stop: (do not works)

******************************************************************

rootkey=HKEY_LOCAL_MACHINE

 

SOFTWARE\Policies\Microsoft\WindowsFirewall\DomainProfile\

EnableFirewall dword(00000000)

 

SOFTWARE\Policies\Microsoft\WindowsFirewall\StandardProfile\

EnableFirewall dword(00000000)

 

SYSTEM\CurrentControlSet\Services\SharedAccess\Parameters\FirewallPolicy\StandardProfile\

EnableFirewall dword(00000000)

 

SYSTEM\ControlSet001\Services\SharedAccess\Parameters\FirewallPolicy\StandardProfile\

EnableFirewall dword(00000000)

******************************************************************

 

 

Any idea which registry-keys i need?

I will not use netsh.

 

Regards

Cornelius Wasmund

---

http://www.4logistic.de - http://www.windows-xp-embedded.de

  • Replies 3
  • Created
  • Last Reply
Guest Twayne
Posted

Re: Firewall start/stop with registry-keys

 

> Hello Windows XP Community,

>

> i want to start and stop the windows internal firewall by the registry

> with delphi.

> I can start the Firewall, but not stop ... so i change the follow

> reg-keys:

>

> start: (works)

> ******************************************************************

> rootkey=HKEY_LOCAL_MACHINE

>

> SYSTEM\CurrentControlSet\Services\SharedAccess\Parameters\FirewallPolicy\StandardProfile\

> EnableFirewall dword(01000000)

>

> SYSTEM\ControlSet001\Services\SharedAccess\Parameters\FirewallPolicy\StandardProfile\

> EnableFirewall dword(01000000)

> ******************************************************************

>

>

> stop: (do not works)

> ******************************************************************

> rootkey=HKEY_LOCAL_MACHINE

>

> SOFTWARE\Policies\Microsoft\WindowsFirewall\DomainProfile\

> EnableFirewall dword(00000000)

>

> SOFTWARE\Policies\Microsoft\WindowsFirewall\StandardProfile\

> EnableFirewall dword(00000000)

>

> SYSTEM\CurrentControlSet\Services\SharedAccess\Parameters\FirewallPolicy\StandardProfile\

> EnableFirewall dword(00000000)

>

> SYSTEM\ControlSet001\Services\SharedAccess\Parameters\FirewallPolicy\StandardProfile\

> EnableFirewall dword(00000000)

> ******************************************************************

>

>

> Any idea which registry-keys i need?

> I will not use netsh.

>

> Regards

> Cornelius Wasmund

> ---

> http://www.4logistic.de - http://www.windows-xp-embedded.de

 

 

--

--

How to Post to more than one group:

http://en.wikipedia.org/wiki/Crossposting

Guest Kelly
Posted

Re: Firewall start/stop with registry-keys

 

Disable:

 

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SharedAccess\Parameters\FirewallPolicy\StandardProfile]

"EnableFirewall"=dword:00000000

"DoNotAllowExceptions"=dword:00000000

 

Enable:

 

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SharedAccess\Parameters\FirewallPolicy\StandardProfile]

"EnableFirewall"=dword:00000001

"DoNotAllowExceptions"=dword:00000000

 

 

--

 

All the Best,

Kelly (MS-MVP/DTS&XP)

 

Taskbar Repair Tool Plus!

http://www.kellys-korner-xp.com/taskbarplus!.htm

 

SupportSpace

http://www.supportspace.com/pages?aiu=kellyskorner

 

"Cornelius Wasmund" <newsgroup@4logistic.de> wrote in message

news:e5Nwn6UzIHA.5520@TK2MSFTNGP06.phx.gbl...

> Hello Windows XP Community,

>

> i want to start and stop the windows internal firewall by the registry

> with delphi.

> I can start the Firewall, but not stop ... so i change the follow

> reg-keys:

>

>

> start: (works)

> ******************************************************************

> rootkey=HKEY_LOCAL_MACHINE

>

> SYSTEM\CurrentControlSet\Services\SharedAccess\Parameters\FirewallPolicy\StandardProfile\

> EnableFirewall dword(01000000)

>

> SYSTEM\ControlSet001\Services\SharedAccess\Parameters\FirewallPolicy\StandardProfile\

> EnableFirewall dword(01000000)

> ******************************************************************

>

>

> stop: (do not works)

> ******************************************************************

> rootkey=HKEY_LOCAL_MACHINE

>

> SOFTWARE\Policies\Microsoft\WindowsFirewall\DomainProfile\

> EnableFirewall dword(00000000)

>

> SOFTWARE\Policies\Microsoft\WindowsFirewall\StandardProfile\

> EnableFirewall dword(00000000)

>

> SYSTEM\CurrentControlSet\Services\SharedAccess\Parameters\FirewallPolicy\StandardProfile\

> EnableFirewall dword(00000000)

>

> SYSTEM\ControlSet001\Services\SharedAccess\Parameters\FirewallPolicy\StandardProfile\

> EnableFirewall dword(00000000)

> ******************************************************************

>

>

> Any idea which registry-keys i need?

> I will not use netsh.

>

> Regards

> Cornelius Wasmund

> ---

> http://www.4logistic.de - http://www.windows-xp-embedded.de

Guest Cornelius Wasmund
Posted

Re: Firewall start/stop with registry-keys

 

Hello Kelly,

 

wenn i use this i become follow response

 

Disable:

Activate the Firewall (WHY???)

 

Enable:

Activate the Firewall

 

I tested it on XP SP2c

 

Regards

Cornelius Wasmund

--

http://www.4logistic.de - http://www.windows-xp-embedded.de

 

Kelly schrieb:

> Disable:

>

> [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SharedAccess\Parameters\FirewallPolicy\StandardProfile]

>

> "EnableFirewall"=dword:00000000

> "DoNotAllowExceptions"=dword:00000000

>

> Enable:

>

> [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SharedAccess\Parameters\FirewallPolicy\StandardProfile]

>

> "EnableFirewall"=dword:00000001

> "DoNotAllowExceptions"=dword:00000000

>

>


×
×
  • Create New...