Things You'll Need:
- Windows operating system
-
Step 1
Create a blank batch file:
To do this, right click on your desktop, select New - Text Document. A file on the desktop will display with the name highlight as "New Text Document.txt", type over that to rename the file "test.bat".
A popup will ask you if you are sure you want to change the file name extension, answer yes.
Right click on test.bat again and select Edit. This will bring the file up in notepad where you can type in the commands to change the windows services. -
Step 2
Open windows services: Click the Start button and Run, then type services.msc and click the ok button. This will open the windows services list. You can also open it by clicking the Administrative Tools in Control Panel and selecting Services. Now you should have the notepad up to edit the test.bat file and the Services List popup open.
-
Step 3
Enter the commands in the batch file: There are many things you can do with the services, but we will focus on turning a service on and off and also changing the startup type. For this example, we will be working with the "Index Services" service.
-
Step 4
This is what your test.bat file should look like to turn on "Indexing Service" and set the startup type to automatic.In the test.bat file that you have open, copy the following two lines and save the file. NET START "Indexing Service", sc config CiSvc start= auto. You can keep the notepad open. Double click the test.bat file on your desktop. This will start the index service and set the startup type to automatic.
-
Step 5
Display NameGetting the display name for NET START and NET STOP: Now that you have a very basic way to start a service and change the startup type on it. You will want to know how to do the same for other services. NET START can use either the 'service name' or the 'display name'. For our example, we used the display name because it makes reading test.bat file easier. To get the display name and service name, right click the service and select properties. In the picture you will see the display name circled and notice the service name above it. To stop the indexing service add this line in your test.bat file and double click test.bat to run it. NET STOP "Indexing Service"
-
Step 6
Changing the startup type for a service: You will notice that the CiSvc is used to configure the Startup Type. CiSvc is the service name for "Indexing Services". The service name is found above the display name when you right click a service and select properties.
Adding this in your test.bat file will change the indexing service to have a startup type of automatic.
sc config CiSvc start= auto
To change this service to startup up manually, Add this line to the test.bat.
sc config CiSvc start= demand
There are other options for the startup type that can be found here:
http://windowsitpro.com/article/articleid/37873/how-can-i-configure-a-services-start-up-type-from-the-command-line.html -
Step 7
Turning on and off the right services: Now that you know the basics for turning a service on and off, it would be nice to know which services are safe to turn off. Here is a list of minimum services that are needed for gaming: http://www.tweakxp.com/article37562.aspx Here is a list of the bare minimum services that windows xp needs to operate properly. http://www.extremetech.com/article2/0,2845,1786007,00.asp








