Windows Server 2003 in a Nutshell

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

See Also

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

Категории