Clever1mba Posted May 5, 2005 Posted May 5, 2005 HELLO every one FORUM is gr8 always get solutionnow i have one problem when i run my application windows xp firewall block my application and promote for unblock but i dont want user promte this msg i just want to know how to disable Windows Firewall/Internet Connection Sharing (ICS) in services if u have any idea then plz let me know or any code to disable it RunAsSet ( ["user", "domain", "password" [, options]] )this may be help to disable service THANKS
SvenP Posted May 5, 2005 Posted May 5, 2005 HELLO every one FORUM is gr8 always get solutionnow i have one problemĀ when i run my application windows xp firewall block my application and promote for unblock but i dont want user promte this msg i just want to know how to disable Windows Firewall/Internet Connection Sharing (ICS) in services if u have any idea then plz let me know or any code to disable it this may be help to disable service THANKS<{POST_SNAPBACK}>Disabling the firewall only for your application is not safe. It would suggest hacking/spyware attempts.It is better to leave the firewall running and put your application in the 'exceptions' list. You can automate this by calling the program 'netsh.exe' from within your script before you do any network-related functions:RunWait("netsh firewall set portopening protocol =protocol port =port name = name mode = mode ")Where:protocol = TCP or UDP or ALLport = the port number your program usesname = a description for your programmode = "enable" if you also want to allow incoming trafficSee also: http://www.microsoft.com/technet/prodtechn...t/wfsp2apb.mspxRegards,-Sven
SvenP Posted May 5, 2005 Posted May 5, 2005 HELLOOKAY BUT OTHER SYSTEMS IS NOT ON INTERNET I MEAN IT JUST LOACL AREA NETWORK NOT USING INTERNET IF U TELL ME HOW TO STOP SERVICE IT WILL BE MORE EASYER THEN 'netsh.exe'<{POST_SNAPBACK}>First step: fix your CAPS-LOCK key.Second step: try RunWait("NET.EXE STOP SharedAccess")-Sven
AntiVirusGuy Posted May 16, 2005 Posted May 16, 2005 Like everyone I messed with the registry settings but there is an easier wayuse the dos commandnetsh firewall set opmode /?netsh firewall set opmode enablenetsh firewall set opmode disableit is much easierHELLO every one FORUM is gr8 always get solutionnow i have one problemĀ when i run my application windows xp firewall block my application and promote for unblock but i dont want user promte this msg i just want to know how to disable Windows Firewall/Internet Connection Sharing (ICS) in services if u have any idea then plz let me know or any code to disable it this may be help to disable service THANKS<{POST_SNAPBACK}>
PartyPooper Posted January 16, 2006 Posted January 16, 2006 (edited) From my FastGaming app. Will work on Win XP Home/Pro and 2000: $sStopServiceCommandLine = 'net stop "Internet Connection Firewall / Internet Connection Sharing"' KillService() $sStopServiceCommandLine = 'net stop "Internet Connection Sharing"' KillService() $sStopServiceCommandLine = 'net stop "Windows Firewall/Internet Connection Sharing (ICS)"' KillService() Func KillService() RunWait(@ComSpec & " /c " & $sStopServiceCommandLine, "C:\WINDOWS\system32", @SW_HIDE) EndFunc Just noticed I'll have to update my app because I'm using a static working directory which may not be correct "C:\WINDOWS\system32" (Windows could be installed on a different drive...) Edit: forgot to say, don't try installing anything before you reboot after stopping the service or you'll end up making a new restore point which will permanently disable the service. Edited January 16, 2006 by PartyPooper
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now