O'Reilly logo

Windows Server 2008 Portable Command Guide: MCTS 70-640, 70-642, 70-643, and MCITP 70-646, 70-647 by Darril Gibson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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: ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required