Sign in to follow this  
Followers 0
Clever1mba

How to Stop Services

5 posts in this topic

HELLO every one FORUM is gr8 always get solution

now 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

Share this post


Link to post
Share on other sites



HELLO every one FORUM is gr8 always get solution

now 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 ALL

port = the port number your program uses

name = a description for your program

mode = "enable" if you also want to allow incoming traffic

See also: http://www.microsoft.com/technet/prodtechn...t/wfsp2apb.mspx

Regards,

-Sven

Share this post


Link to post
Share on other sites

HELLO

OKAY 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

Share this post


Link to post
Share on other sites

Like everyone I messed with the registry settings but there is an easier way

use the dos command

netsh firewall set opmode /?

netsh firewall set opmode enable

netsh firewall set opmode disable

it is much easier

HELLO every one FORUM is gr8 always get solution

now 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}>

Share this post


Link to post
Share on other sites

#5 ·  Posted (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 by PartyPooper

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0