Name
net stop
Synopsis
Stops a service.
Syntax
net stop service
Options
-
service
The service you want to stop. See net start in this chapter for a list of services you can start and stop.
Examples
To stop the Server service:
net stop server
These workstations have sessions on this server: 172.16.11.100 TEST TEST BACH BACH 172.16.11.104 Do you want to continue this operation? (Y/N) [Y]:y
These workstations have sessions with open files on this server: 172.16.11.100 172.16.11.104 Do you want to continue this operation? (Y/N) [N]:y
The following services are dependent on the Server service. Stopping the Server service will also stop these services. Net Logon Message Queuing Distributed File System Computer Browser Do you want to continue this operation? (Y/N) [N]:n
To stop the Net Logon service:
net stop "net logon"
The Net Logon service is stopping.
The Net Logon service was stopped successfully.
To restart Net Logon:
net start "net logon"
The Net Logon service is starting..........
The Net Logon service was started successfully.
Notes
Stopping a service removes its associated resources from memory.
Where possible before stopping a service, pause the service first and then send a message to connected users that the service is about to be stopped. This gives users time to save their work and disconnect. See net pause and net send in this chapter.
You cannot stop the Fax Service as this service functions on demand and stops automatically when there are no faxes to send or receive.
See Also ...
Get Windows 2000 Administration in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.