Chapter 21. Manipulating Services

This chapter provides information and commands concerning the following topics:

Stopping and starting services with the net command

Manipulating services with sc

Manipulating services with wmic

Tip

You should be familiar with the sc, net start, and wmic commands when preparing for the 70-640 and 70-643 exams.

Stopping and Starting Services with the net Command

A basic way to start and stop a service from the command prompt is with the net command. The basic syntax to start a service is

net start service-name

Similarly, the basic syntax to stop a service is

net stop service-name

For example, if SRV records aren’t registered in DNS, you can stop and restart the netlogon service with the following commands: ...

Get Windows Server 2008 Portable Command Guide: MCTS 70-640, 70-642, 70-643, and MCITP 70-646, 70-647 now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.