Professional Windows Server 1002003 Security A Technical Reference [Electronic resources]

Roberta Bragg

نسخه متنی -صفحه : 415/ 342
نمايش فراداده

net stop

Stops a service.

Syntax

net stop service

Options

service

The service you want to stop. See net start earlier in this chapter for a list of services you can start and stop.

Examples

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

Stop the Net Logon service:

net stop "net logon"
The Net Logon service is stopping.
The Net Logon service was stopped successfully.

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.

  • Whenever 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 earlier in this chapter.

  • You can't stop the Fax service as this service functions on demand and stops automatically when there are no faxes to send or receive.

See Also

net continue, net pause, net send, net start,

Services