In: Categories » Computers and technology » Hardware » Managing Windows Services from the Command Line
|
You can manage services through the command-line interface as well as the GUI; in some cases, the command line can be faster and easier. There are two ways to do this. The first is with the net command. The commands net start servicename and net stop servicename start and stop a service on the local computer. If the service name has spaces in it, you must enclose the name in quotation marks ("), and you can specify either the service's Display Name (the name listed in the Services management display), or the shorter Service Key name. These commands can be used to quickly and easily restart a service. For example, if you had recently accessed a network host by its DNS name and the host's IP address is now changed, or if the host was offline but is now online, your computer's DNS cache will still hang on to the out-of-date address or the failure result for several minutes. Restarting the DNS service will make it discard the old, incorrect information and refresh itself. You can do this withnet stop dns net start dns A more powerful command-line service management utility is sc, which can manage services on other computers, change service settings, and list information about installed services. However, to manage services with sc, you must know the service's "Service Key name", which is usually not the name displayed in the Services management window. You can use sc to get a list of all installed services and their Service Key names, or you can refer to Table 4.8 for the names of common Windows services; the key names are printed in boldface. Here are some sample uses of the sc utility:
To get a listing of sc's full command syntax, type these three lines in a command prompt window: sc ? >x.txt y notepad x.txt (You will not be prompted for the y line.) Open the Windows Help and Support Center and search for sc for details on each subcommand.
|
legal disclaimer
1) Our website is not responsible for the information contained by this article as well for any and all copyright infringements by authors and writers. E-articles is a free information resource. If you suspect this article for any copyright infringements, please read the Terms of service and contact us to investigate the problem.
2) The E-articles directory team is not responsible for inaccuracies, falsehoods, or any other types of misinformation this tutorial may contain and will not be liable for any loss or damage suffered by a user through the user's reliance on the information gained here. Please read the Terms of service
Useful tools and features
related articles
Read-only memory Read-only memory (ROM) is a type of memory that cannot be written to. Information is written to ROM chips by the manufacturer, and this information cannot be changed. In the past, if ROM information needed to be updated, you had to remove the original chip and replace it with an updated ROM chip. Software written to ROM chips is called firmware. One of the major uses for ROM is to store the system BIOS, which contains Power- On Self-Test (POST) routines and other routines that ini...
2. Some Information about the Most Common Computer Ports
When connecting devices to your computer, you should first look at the different types of ports that can be found on it. You may already be familiar with some of the common ones, such as serial, parallel, and USB. This section will discuss IEEE-1394 ports as well, which are often called FireWire. Serial versus parallel Two of the most common ports on the back of your computer are the serial ports and the parallel ports. Most computers have one parallel port and two serial ports. They are used to co...
3. Small Computer System Interface (SCSI) ~ How to Install SCSI Host Adapter in Windows 2000
This article discusses a type of hard disk that is more popular in high-end machines (servers) than in personal desktop computers. First, I will discuss SCSI and some of its benefits. Then I will take a look at the steps involved in configuring SCSI devices. SCSI overview SCSI is an acronym for Small Computer System Interface. The important part of this term is “small computer.” SCSI environments use a SCSI controller that is responsible for managing all SCSI devices and ...
4. Types of DRAM
DRAM is the most popular type of memory used in systems today. It is also the most popular type of memory that computer users are adding to their computers for the purpose of upgrading memory. Therefore, you must understand the different types of DRAM and what types of DRAM outperform others. Standard DRAM Memory is organized into rows and columns like a spreadsheet. The information is stored in the different cells or blocks that make up these rows and columns. With standard RAM, the CPU reques...
In this article, you will learn to install and troubleshoot IDE devices. First, you’ll be given an overview of IDE devices and some of their features, and then you’ll be shown a number of different configurations for installing IDE devices into a computer system. IDE overview The hard drive controller is responsible for converting signals made by the system CPU to signals that the hard disk can understand. These signals include instructions on where to find data and how to...
6. How Does a Printer Work ~ The printing process ~ Types of Printers
Although many different manufacturers make printers, you’re likely to encounter only three real categories of printers (so far). The three types of printers discussed in this article are: Laser Printers Inkjet Printers Dot-matrix Printers The exam touches base on each of these, but the wise technician should focus on laser printers, not only for the exam’s sake, but because these printers are the most common type in today’s computing environm...
7. Pocket PC Installation
Installing Pocket PC programs is fairly straightforward. Palmtop computers use an interface with a hosting laptop or desktop computer. The handheld is updated and installed through this interface. This interface also provides a means to install third-party programs onto the iPAQ. The procedure typically is as follows: The program is downloaded to the desktop. The user installs program from desktop, just like any other program. ...
8. General Bus Architectures
On the system board are a number of expansion slots that are used to expand on the computer’s capabilities. When it is first purchased, a computer only has so many capabilities—the nice thing is that you can expand on those capabilities. Expansion slots expand on what the computer can do. The problem is that there are different types of expansion slots in the system, so when you go to purchase that sound card or network card, you have to make sure that you purchase the right type. In the following sections...
9. Basic Motherboard Components
When you look at the motherboard inside your computer, you notice that there are a number of different items connected to this board. The memory sockets are installed on this board; the CPU socket is located on the motherboard, and the BIOS chip is also located on the motherboard. In this section, we will identify the different system board components. Processor One of the easiest items to recognize on the motherboard is the processor. The processor is usually the l...










