Auto Services Change?

Twist86

Active Member
I find myself disabling the same services over and over for almost any computer I help fix with Vista and XP and I was curious there anyway to make it so I can run a some kind of script or something of the sort that does it for me with 1 click vs 20 minutes of clicking?

Now I don't want it to touch "new" services (aka different hardware/programs are the only irregular on PCs) just disable - manual - automatic - automatic delay the ones on default list for the OS based off the service pack I used at the time.

Dunno if its possible but when I start to remember the lists without looking there is a issue with my sanity :P
 
I believe you can run the Services Control Manager through computer management and set a service to not start at boot by setting it to start with a manual trigger. Meaning you have to tell it to start.

I am not in front of a Windows machine at the moment to verify but all of this is done form the Computer Management applications.
 
No I mean when I format instead of setting my services manually is there a way to save the settings so I can do my tweaks off default OS / Package.

1 click vs 20 minutes of doing it.
 
Oh I see you want automation.....

Yeah you can batch job it most likely, or look into power shell and write a script. I think a C language based script would probably work too. Off the top of my head I would not know how to write it but I could figure it out if I got the time to look into it.

Of course the easiest way would be group policy, but I assume this is not for an enterprise, and is for personal computers?
 
OK, I had a few seconds to look this up as I was curious myself. You will need to make a batch file and make it executable, there are tons of tutorials you can grab on google to do so and just make it in your favorite plain text editor.

The command I think you want to use is the sc command (may have to download additional command lines tools from MS) as it will stop, start, and end services.

Code:
DESCRIPTION:
        SC is a command line program used for communicating with the
        Service Control Manager and services.
USAGE:
        sc <server> [command] [service name] <option1> <option2>...


        The option <server> has the form "\\ServerName"
        Further help on commands can be obtained by typing: "sc [command]"
        Commands:
          query-----------Queries the status for a service, or
                          enumerates the status for types of services.
          queryex---------Queries the extended status for a service, or
                          enumerates the status for types of services.
          start-----------Starts a service.
          pause-----------Sends a PAUSE control request to a service.
          interrogate-----Sends an INTERROGATE control request to a service.
          continue--------Sends a CONTINUE control request to a service.
          stop------------Sends a STOP request to a service.
          config----------Changes the configuration of a service (persistent).
          description-----Changes the description of a service.
          failure---------Changes the actions taken by a service upon failure.
          failureflag-----Changes the failure actions flag of a service.
          sidtype---------Changes the service SID type of a service.
          privs-----------Changes the required privileges of a service.
          qc--------------Queries the configuration information for a service.
          qdescription----Queries the description for a service.
          qfailure--------Queries the actions taken by a service upon failure.
          qfailureflag----Queries the failure actions flag of a service.
          qsidtype--------Queries the service SID type of a service.
          qprivs----------Queries the required privileges of a service.
          delete----------Deletes a service (from the registry).
          create----------Creates a service. (adds it to the registry).
          control---------Sends a control to a service.
          sdshow----------Displays a service's security descriptor.
          sdset-----------Sets a service's security descriptor.
          showsid---------Displays the service SID string corresponding to an arbitrary name.
          GetDisplayName--Gets the DisplayName for a service.
          GetKeyName------Gets the ServiceKeyName for a service.
          EnumDepend------Enumerates Service Dependencies.

        The following commands don't require a service name:
        sc <server> <command> <option>
          boot------------(ok | bad) Indicates whether the last boot should
                          be saved as the last-known-good boot configuration
          Lock------------Locks the Service Database
          QueryLock-------Queries the LockStatus for the SCManager Database
EXAMPLE:
        sc start MyService

Would you like to see help for the QUERY and QUERYEX commands? [ y | n ]:

You can also use the net command, with the start or stop option, example:

Code:
NET STOP "Error Reporting Service"
NET STOP "FTP Publishing Service"
SET STOP "IIS Admin"
NET STOP "Messenger"

or ....

NET START "Error Reporting Service"
NET START "FTP Publishing Service"
SET START "IIS Admin"
NET START "Messenger"

*note these are all separate commands

Do note that disabling services does not really increase or decrease performance as a service sits dormant until used.
 
Back
Top