|
Full Version: Disabling Services
I know how to disable services using .bat files (command prompt), but how can a service be set from Automatic or Manual to DISABLED via a .bat? Thanks in advance for the help
QUOTE(neo @ May 4 2005, 03:13 AM) I know how to disable services using .bat files (command prompt), but how can a service be set from Automatic or Manual to DISABLED via a .bat? Thanks in advance for the help sc.exe from Windows Ressource Kit For instance: CODE sc.exe config "Messenger" start= disabled regards ir4ta QUOTE(ir4ta @ May 3 2005, 11:40 PM) QUOTE(neo @ May 4 2005, 03:13 AM) I know how to disable services using .bat files (command prompt), but how can a service be set from Automatic or Manual to DISABLED via a .bat? Thanks in advance for the help sc.exe from Windows Ressource Kit For instance: CODE sc.exe config "Messenger" start= disabled regards ir4ta found it, thanks
-------------------------------------------------------------------------------
. .. ...: Hax0rcitos Console Tool v0.3 :... .. . ------------------------------------------------------------------------------- Haxorcitos Console Tool v0.3 Programmed by aT4r@3wdesign.es Homepage: http://www.3WDesign.es Copyright © 2003 Usage: Hct.exe -s[lvdsSp]p[kwl[v]]ri [arguments] -sl * List all services. -sv * View service configuration details. -sd * Delete a service. -ss * Stops a service. -sS * Start a service. -sp * Pause a service. -si * Install a new service. -sm * modify service configuration. -pl [PID|process] * List [All] Running proccesses. -plv [PID|process] * List verbose information about [All] Running processes. -pk * Kill a process. -pw * Shows Process owner (whoami). -r * Spawns a shell in the remote Host(nc listening in the othe r side) -i * System Information
hum yes but i have maybe a better solution see it:
for exemple from my secure bat: CODE echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\RemoteAccess] echo "Start" =dword:00000004 >> srv.reg net stop /y RemoteAccess "4" in registre is to disable a service it's also an easy way to find all service name in : HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\
well i use this method of net stop / .. the service , in my bat files and result ..
the net stop is not enough because after a reboot if a service has an automatic startup
it's useless isn't it?... u can run msconfig and then disable the service with will not alot the service to start again. This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
|
|