Note: Only tested with KiXtart v4.22 on English XP w/SP2 installed and local admin rights
1. User must have Admin Rights to run 2. If Firewall is currently set and functioning, and does not already allow open ports to allow KiXtart to set, it will not work 3. Typically script / UDF would be used to prepare the settings BEFORE rolling out SP2 for systems that do not have GPO access or systems that are in Workgroups.
Please test, provide feedback before I post in the UDF forum.
IPv6 Internet Connection Firewall NOT SUPPORTED
ICF DomainProfile Defines changes to Windows Firewall’s default configuration when a computer is connected to a network that contains domain controllers for the domain of which the computer is a member.
ICF StandardProfile Defines changes to Windows Firewall’s default configuration when a computer is not connected to a network that contains domain controllers for the domain of which the computer is a member. If a computer is not a member of a domain, Windows Firewall uses the configuration stored in the standard profile.
#136273 - 2005-03-3108:52 PMRe: ModifyXPFirewall() - Set or Read some XP Firewall settings
JoseJose
Seasoned Scripter
Registered: 2001-04-04
Posts: 693
Loc: Buenos Aires - Argentina
Doc: Woudnt be nice to have the "add service" in this script in order to block FE MSN port locally? This of chourse in case there is no upper firewall to make that block. Justa sking
#136276 - 2005-04-0110:45 AMRe: ModifyXPFirewall() - Set or Read some XP Firewall settings
JoseJose
Seasoned Scripter
Registered: 2001-04-04
Posts: 693
Loc: Buenos Aires - Argentina
Doc: Taking a fast look at Jooel AllowRemoteControlOnFirewall() function saw how the object was manipulated. There might be a way of adding ports as I suggested like this, sorry if was already done and....havent tryed it yet.
Code:
Dim $objPort
$objPort = CreateObject("HNetCfg.FwOpenPort")
$objPort.Name = "DCOM"
$objPort.Port = 888
$objPort.Scope = 'NET_FW_SCOPE_LOCAL_SUBNET'
$objPort.Protocol = 'NET_FW_IP_PROTOCOL_TCP'
$objPort.Enabled = True
$objProfile.GloballyOpenPorts.Add($objPort)
$objPort=''
Lonkero Nieminen you can have a second UDF for your AllowRemoteControlOnFirewall(). M$ reference
#136277 - 2005-04-0201:08 AMRe: ModifyXPFirewall() - Set or Read some XP Firewall settings
NTDOCNTDOC Administrator
Registered: 2000-07-28
Posts: 11629
Loc: CA
Well since the UDF is only to enable/disable the firewall here is the code that a GPO would normally apply to disable it for both profiles. The UDF is on the fly, vs. this setting below would not allow even a local admin to start the firewall without digging into the registry and modifying things.
If @ProductType="Windows XP Professional" or @ProductType="Windows XP Professional Tablet PC" If $Admin='Yes' $NF=WriteValue('HKLM\SOFTWARE\Policies\Microsoft\WindowsFirewall\DomainProfile','EnableFirewall',0,REG_DWORD) $NF=WriteValue('HKLM\SOFTWARE\Policies\Microsoft\WindowsFirewall\StandardProfile','EnableFirewall',0,REG_DWORD) EndIf EndIf