You??™ll perform many types of performance,
but some maintenance tasks occur more often than others do. For example, you??™ll find
that you need to start and stop services to perform certain tasks, so knowing how to start and stop
services at the command line is essential. The following sections don??™t describe every maintenance
command, but you??™ll find most of the common maintenance commands (those that you??™ll use
regularly) in these sections.
Controlling Services with the SC Command
The Service Control (SC) command helps you control services on your machine. The control is at
a low level. Although you can start, stop, pause, and continue services using other utilities, this utility
lets you perform additional tasks, such as query the service for detailed status information, send
it a change of configuration message, or enumerate the services that the target service depends on.
This utility uses the following syntax:
sc [\\server] [command] [service name] [
[...]]
The following list describes each of the command line arguments.
\\server Specifies the server that runs the service you want to manage. The default assumes
that you want to use the local machine.
Pages:
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202