Monday, February 06, 2012
   
Text Size

XP - Configure Firewall

 WshShell.Run ("netsh firewall reset"),,true
 WshShell.Run ("netsh firewall set opmode mode = ENABLE exceptions = ENABLE profile = DOMAIN"),,true
 WshShell.Run ("netsh firewall set opmode mode = ENABLE exceptions = DISABLE profile = STANDARD"),,true
 WshShell.Run ("netsh firewall set icmpsetting type = ALL mode = ENABLE profile = DOMAIN"),,true
 WshShell.Run ("netsh firewall set icmpsetting type = ALL mode = DISABLE profile = STANDARD"),,true
 WshShell.Run ("netsh firewall set icmpsetting type = 8 mode = ENABLE profile = STANDARD"),,true
 WshShell.Run ("netsh firewall set multicastbroadcastresponse mode = DISABLE profile = ALL"),,true
 WshShell.Run ("netsh firewall set notifications mode = DISABLE profile = ALL"),,true
 WshShell.Run ("netsh firewall set service type = FILEANDPRINT mode = ENABLE scope = CUSTOM addresses = 10.0.0.0/8,LocalSubnet profile = ALL"),,true
 WshShell.Run ("netsh firewall set service type = REMOTEADMIN mode = ENABLE scope = CUSTOM addresses = 10.0.0.0/8 profile = DOMAIN"),,true
 WshShell.Run ("netsh firewall set service type = REMOTEADMIN mode = DISABLE profile = STANDARD"),,true
 WshShell.Run ("netsh firewall set service type = REMOTEDESKTOP mode = ENABLE scope = CUSTOM addresses = 10.0.0.0/8 profile = DOMAIN"),,true
 WshShell.Run ("netsh firewall set service type = REMOTEDESKTOP mode = DISABLE profile = STANDARD"),,true
 WshShell.Run ("netsh firewall set service type = UPNP mode = ENABLE scope = CUSTOM addresses = 10.0.0.0/8 profile = DOMAIN"),,true
 WshShell.Run ("netsh firewall set service type = UPNP mode = DISABLE profile = STANDARD"),,true
 WshShell.Run ("netsh firewall add portopening UDP 33355 Landesk_TMC_TCP_33355 enable all"),, True
 WshShell.Run ("netsh firewall add portopening TCP 33355 Landesk_TMC_UDP_33355 enable all"),, True
 WshShell.Run ("netsh firewall add portopening UDP 33354 Landesk_TMC_TCP_33354 enable all"),, True
 WshShell.Run ("netsh firewall add portopening TCP 33354 Landesk_TMC_UDP_33354 enable all"),, True
 WshShell.Run ("netsh firewall add portopening UDP 38293 Landesk_RSD_TCP_38293 enable all"),, True
 WshShell.Run ("netsh firewall add portopening TCP 38292 Landesk_RSD_UDP_38292 enable all"),, True
 WshShell.Run ("netsh firewall add portopening TCP 1761 Landesk_RC_TCP_1761 enable all"),, True
 WshShell.Run ("netsh firewall add portopening UDP 1761 Landesk_RC_UDP_1761 enable all"),, True
 WshShell.Run ("netsh firewall add portopening TCP 1762 Landesk_RC_TCP_1762 enable all"),, True
 WshShell.Run ("netsh firewall add portopening UDP 1762 Landesk_RC_UDP_1762 enable all"),, True