datkewlguy 0 Posted May 29, 2005 how could i start a service silently (if possible)... anything better than mouseclicks and control sends? for example, messenger service. Share this post Link to post Share on other sites
freanir 0 Posted May 29, 2005 (edited) You just have to use : #Include <process.au3> _RunDOS("net start messenger") ("net start" starts every service you want to) Accordingly "net stop" would stop the service. Edited May 29, 2005 by freanir freanir Share this post Link to post Share on other sites
Alandor 0 Posted May 31, 2005 You also have the NTs command line tool sc:From the command help description:SC is a command line program used for communicating with theNT Service Controller and services. Share this post Link to post Share on other sites
SvenP 0 Posted May 31, 2005 how could i start a service silently (if possible)... anything better than mouseclicks and control sends? for example, messenger service.<{POST_SNAPBACK}>With the latest AutoIt beta version you can also do this:; Start a service ; See also: http://msdn.microsoft.com/library/en-us/shellcc/platform/shell/reference/objects/ishelldispatch2/ishelldispatch2.asp $oShell=ObjCreate("shell.application") $oShell.ServiceStart("messenger",false)Regards,-Sven Share this post Link to post Share on other sites
SvenP 0 Posted June 2, 2005 hello cool SvenP if we want to disable any service then wat to dothis method true = manual service stop<{POST_SNAPBACK}>The easiest way to disable a service is by modifying directly in the registry:RegWrite ( "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Messenger" ,"Start", "REG_DWORD", 4 )So when you add this line after the 'ServiceStop' request, then the messenger service will not come back.Regards,-Sven Share this post Link to post Share on other sites