Forums: Simple Method To Disable Services - Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Simple Method To Disable Services Using a .bat method

#1 User is offline   neo 

  • Private
  • Icon
  • Group: Members
  • Posts: 12
  • Joined: 17-July 03

Posted 03 May 2005 - 07:16 PM

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 B)
0

#2 User is offline   Aztekh 

  • Private First Class
  • Icon
  • Group: Members
  • Posts: 29
  • Joined: 30-September 04

Posted 03 May 2005 - 07: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
0

#3 User is offline   neo 

  • Private
  • Icon
  • Group: Members
  • Posts: 12
  • Joined: 17-July 03

Posted 03 May 2005 - 08:42 PM

Aztekh, on May 3 2005, 11:59 PM, said:

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 :)
0

#4 User is offline   GAN_GR33N 

  • Corporal
  • Icon
  • Group: Members
  • Posts: 163
  • Joined: 24-May 03

Posted 04 May 2005 - 03:19 AM

you could also try "net start servicename" and "net stop servicename"
0

#5 User is offline   Erra 

  • Staff Sergeant
  • Icon
  • Group: Members
  • Posts: 263
  • Joined: 05-January 04

Posted 04 May 2005 - 07:49 AM

Dunno why this post is in both Windows and beginners. I will only reply to this one :D... 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".
0

#6 User is offline   Pro21 

  • Sergeant
  • Icon
  • Group: Members
  • Posts: 230
  • Joined: 12-February 04

Posted 07 May 2005 - 03:47 AM

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 :)
0

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users

  • Share



Our Sponsors:


SwiftLayer Affiliate Web Hosting