hacking contest

hacking exploits security forum
hacking
compliance articles
upgrade backup exec
information security consultant

neo
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 cool.gif
Aztekh
There is the SC command in windows, have a look here hxxp://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/sc.mspx
neo
QUOTE(Aztekh @ May 3 2005, 11:59 PM)
There is the SC command in windows, have a look here hxxp://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/sc.mspx
*




ya i found it, thanks smile.gif
GAN_GR33N
you could also try "net start servicename" and "net stop servicename"
Erra
Dunno why this post is in both Windows and beginners. I will only reply to this one biggrin.gif... But, you can also use the file services.exe.

It allows you to disable, and delete services.


Service manager v1.3, © Hideout Inc
--------------------------------------

SERVICES HELP for this help message.
SERVICES LIST <machinename> for a list of all running Win32 process services.
SERVICES DELETE <servicename> <machinename> to delete the specified service.
SERVICES CONFIG <servicename> <machinename> for detailed configuration info about a service.
SERVICES START <servicename> <machinename> to start a service.
SERVICES STOP <servicename> <machinename> to stop a service.
SERVICES PAUSE <servicename> <machinename> to pause a service.
SERVICES CONTINUE <servicename> <machinename> to continue a service.

SERVICES CREATE <servicename> <displayname> <service program> <machinename>.
SERVICES CREATESVRANY <servicename> <displayname> <srvany.exe> <service program>
<machinename>.
Ex. CREATESVRANY "system" "System" "c:\winnt\svrany.exe" "c:\winnt\serv-u.exe".

Pro21
C:\>sc config
Modifies a service entry in the registry and Service Database.
SYNTAX:
sc <server> config [service name] <option1> <option2>...
CONFIG OPTIONS:
NOTE: The option name includes the equal sign.
type= <own|share|interact|kernel|filesys|rec|adapt>
start= <boot|system|auto|demand|disabled>
error= <normal|severe|critical|ignore>
binPath= <BinaryPathName>
group= <LoadOrderGroup>
tag= <yes|no>
depend= <Dependencies(separated by / (forward slash))>
obj= <AccountName|ObjectName>
DisplayName= <display name>
password= <password>


The sc.exe 's XP can run under win 2k smile.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.

 
Invision Power Board © 2001-2005 Invision Power Services, Inc.