- Start or stop Windows service from command line (CMD)
- Все о реестре Regedit / All about registry
- Как остановить службу Windows ? / How stop windows service ?
- Быстрая остановка службы через NET STOP
- Параметры NET STOP
- Примеры команды NET STOP
- Примеры остановки наиболее популярных служб
- Видео — Управление службами Windows через командную строку
- How to start and stop services manually on Windows 10
- How to manage services using Services console
- Stop service
- Start service
- Disable service
- Enable service
- How to manage services using Task Manager
- How to manage services using PowerShell
- Stop service
- Start service
- Disable service
- Enable service
- How to manage services using Command Prompt
- Stop service
- Start service
- Disable service
- Enable service
- More Windows 10 resources
- Microsoft’s Surface Duo is not ‘failing up’
- Here’s what you can do if Windows 10 update KB5001330 is causing issues
- Review: NZXT made its first AMD motherboard and it’s brilliant
- These are the best PC sticks when you’re on the move
Start or stop Windows service from command line (CMD)
We normally use Services.msc to start or stop or disable or enable any service. We can do the same from windows command line also using net and sc utilities. Below are commands for controlling the operation of a service.
Command to stop a service:
To start a service:
You need to have administrator privileges to run net start/stop commands. If you are just a normal user on the computer, you would get an error like below.
To disable a service:
To enable a service:
To make a service start automatically with system boot:
Note: Space is mandatory after ‘=’ in the above sc commands.
This SC command works on a Windows 7 machine and also on the down-level editions of Windows i.e Windows XP/2003 and Windows Vista. Again, if you do not have administrator previliges you would get the below error.
Note that the service name is not the display name of a service. Each service is given a unique identification name which can be used with net or sc commands. For example, Remote procedure call (RPC) is the display name of the service. But the service name we need to use in the above commands is RpcSs.
So to start Remote procedure call service the command is:
These service names are listed below for each service. The first column shows the display name of a service and the second column shows the service name that should be used in net start or net stop or sc config commands.
Все о реестре Regedit / All about registry
Как остановить службу Windows ? / How stop windows service ?
Иногда возникает необходимость остановить службу в Windows , например, если возникает подозрение, что приложение не работает из-за работы какой-либо службы.
Сегодня мы рассмотрим пример остановки службы через командную строку.
Для начала, необходимо определиться какую службу мы будет останавливать.
Нажмите Пуск, далее правой кнопкой мыши нажмите по значку Компьютер и выберите пункт Управление.
Если у вас Windows 10, то достаточно нажать правой кнопкой мышки на кнопку Пуск и выбрать пункт Управление компьютером
В окне управления компьютером выбираем Службы и ищем службу интересующую нас службу.
Рассмотрим пример отключения службы Защитник Windows . Не рекомендую отключать данную службу, если у Вас отсутствует Антивирус. Щелкните два раза на службу.
В окне описания службы мы отображено консольное название службы, а именно Windefend
Запустите командную строку сочетанием клавиш Win + R , а в окне Выполнить наберите cmd
В командной строке напишите:
net stop WinDefend
После данных действий служба должна остановиться.
Остановить службу можно и другой командой, а именно командой sc
В описании данной команды есть очень много возможностей.
Командой sc можно запускать, останавливать или запрашивать состояние служб на локальном и удаленном компьютере.
Рассмотрим пример запроса Имени службы через команду sc
На картинке показан запрос имени службы.
Командой sc query | more — мы можем отобразить список Служб на компьютере построчно.
Остановить службу на локальном компьютере можно командой:
sc stop Имя службы
При о запуске, остановке или просмотре состояния службы на удаленном компьютере можно воспользоваться командой sc.
Если вы создаете cmd файл только для локального компьютера, вполне сойдет и net .
Sometimes you need to stop a service in Windows, for example, if you suspect that an application is not running because of a service.
Today we will look at an example of stopping a service via the command line.
For a start, it is necessary to decide what service we will stop.
If you Operation system Windows 7:
Click Start button, right-click Computer, and then click Computer Management
If you have Windows 10, just right — click on the Start button and select Computer Management
In the computer control window, select the Service and look for the service we are interested in.
Consider an example of disabling the Windows Defender service. I do not recommend stop this service if you do not have an antivirus. Double-click the service.
In the service description window, we display the console name of the service, namely Windefend.
Run command prompt (Win+R buttons) in the Run window, type cmd
At the command line, type:
net stop WinDefend
After these actions, the service should stop.
You can also stop the service with another command, namely sc
There are many possibilities in the description of this command.
You can use the sc command to stop services on a remote computer or to query the status of services on a remote computer.
Command sc query |more — we can display the list of Services on the computer line by line.
You can stop the service on the local computer by using the following command
sc stop service Name you service
When you start, stop or view the status of a service on a remote computer, you can use the sc command.
If you are creating a cmd file for your local you can use the net command.
Быстрая остановка службы через NET STOP
В командной оболочке команда NET STOP используется для остановки системных служб операционной системы Windows. Быстрая остановка службы через командную строку позволит системным администраторам сэкономить значительное количество времени по сравнению с графическими эквивалентами. Также возможно применение NET STOP в командных сценариях для автоматизации процессов.
Параметры NET STOP
Команда NET STOP останавливает одну из служб Windows. Синтаксис следующий — NET STOP [служба], где [служба] — может быть одной из следующих служб:
- BROWSER — Обозреватель компьютеров;
- DHCP — DHCP-клиент;
- EVENTLOG — Журнал событий;
- MESSENGER — Служба сообщений;
- NETLOGON — Сетевой вход в систему;
- NTLMSSP — Поставщик поддержки безопасности NT LM;
- RASMAN — Диспетчер подключений удаленного доступа;
- REMOTEACCESS — Маршрутизация и удаленный доступ;
- RPCLOCATOR — Локатор удаленного вызова процедур (RPC);
- RPCSS — Удаленный вызов процедур (RPC);
- SCHEDULE — Планировщик заданий;
- SERVER — Сервер;
- SPOOLER — Диспетчер очереди печати;
- LMHOSTS — Поддержка NetBIOS через TCP/IP;
- UPS — Источник бесперебойного питания;
- WORKSTATION — Рабочая станция.
Остановка одной из служб системы Windows может привести к отключению сетевых соединений используемых этой службой. Kроме того, некоторые службы зависят от других служб. Kоманда NET STOP может также использоваться для остановки служб не входящих в состав Windows.
Синтаксис команды довольно простой, нужно лишь ознакомиться с ее параметрами и запомнить имена некоторых служб.
Примеры команды NET STOP
Остановить работу службы «Сервер» можно с помощью следующей команды:
Остановить работу службы «Диспетчер печати» можно командой
Примеры остановки наиболее популярных служб
- net stop dhcp – остановка DHCP- клиента Windows (служба клиента автоматического получения IP-адресов в сети)
- net stop Dnscache — остановка службы DNS-клиента операционной системы
- net stop SharedAccess – остановка брандмауэра Windows(Общий доступ к Интернету ICS)
- net stop Eventlog — остановка службы журнала событий
- net stop Schedule — — остановка службы планировщика заданий Task Scheduler
- net stop MSIServer — остановка службы Windows Installer
С полным списком служб операционной системы Windows и их сокращенными названиями можно ознакомиться в статье – «Перечень служб Windows — полная информация». Net Stop используется вкупе с другими командами net, такими как:
- NET START – запуск службы;
- NET PAUSE – приостановка службы;
- NET CONTINUE – возобновление работы службы.
Видео — Управление службами Windows через командную строку
How to start and stop services manually on Windows 10
Source: Windows Central
On Windows 10, services are programs that run in the background without a user interface and enable system features (such as printing, networking, remote access, File Explorer, Windows Search, updates, etc.) and apps to operate as intended.
Although the system does a pretty good job managing background services, sometimes, you may need to control them manually when a feature or app isn’t working correctly, or an app requires you to manage its services manually.
Whatever the case it might be, Windows 10 includes at least four methods to stop, start, disable, or enable services using the Services console, Task Manager, Command Prompt, and PowerShell.
In this Windows 10 guide, we’ll walk you through the steps to manage system and apps services on your computer.
How to manage services using Services console
Using the Services consoles is perhaps the simplest method to stop, start, disable, or enable one or multiple services on Windows 10.
Stop service
To stop a running service using Services, use these steps:
- Open Start.
- Search for Services and click the top result to open the console.
- Double-click the service that you intend to stop.
Click the Stop button.
Source: Windows Central
Quick tip: You can also manage the state by right-clicking the service and selecting the option. Or you can select the service and then use the controls at the top to start, stop, pause, or restart.
Once you complete the steps, the service will stop running on the device.
If you’re unable to stop a system service, consider that some services are required for the operation of Windows 10, and they can’t be stopped.
Start service
To start a service on Windows 10, use these steps:
- Open Start.
- Search for Services and click the top result to open the console.
- Double-click the service that you intend to stop.
Click the Start button.
Source: Windows Central
After you complete the steps, the service you specified will start for the current session.
Disable service
To set a service a disabled, use these steps:
- Open Start.
- Search for Services and click the top result to open the console.
- Double-click the service that you intend to stop.
- Click the Stop button.
Use the «Start type» drop-down menu and select the Disabled option.
Source: Windows Central
Once you complete the steps, the service will no longer start automatically after restarting your device.
Enable service
To enable a specific service, use these steps:
- Open Start.
- Search for Services and click the top result to open the console.
- Double-click the service that you intend to stop.
- Click the Start button.
Use the «Start type» drop-down menu and select the Automatic option.
These are the Startup types on Windows 10:
- Automatic – service starts at boot.
- Automatic (Delayed Start) – service start after boot.
- Manual – starts service manually as needed.
- Disabled – stops service from running.
Source: Windows Central
After you complete the steps, the Windows 10 or app service will enable, but if it was in a stopped state, you’d need to start it manually or restart the device for the service to run.
How to manage services using Task Manager
Task Manager also includes a section to quickly manage services for Windows 10 and apps.
To stop, start, or restart a service using Task Manager, use these steps:
- Open Start.
Search for Task Manager and click the top result to open the app.
Quick tip: Windows 10 includes many other ways to open the experience, including right-clicking the taskbar and selecting the Task Manager option and using the Ctrl + Shift + ESC keyboard shortcut.
Right-click the service name, and select one of the options:
- Stop.
- Start.
- Restart.
Source: Windows Central
Quick note: Task Manager only displays the service name, not the display name. For example, if you’re using this method, you’ll the «Print Spooler» defined as «Spooler.»
Once you complete the steps, the service will respond to the option you selected.
How to manage services using PowerShell
You can also use PowerShell commands to manage background services for Windows 10 and apps.
Stop service
To stop a specific service with PowerShell, use these steps:
- Open Start.
- Search for PowerShell, right-click the top result, and select the Run as administrator option.
(Optional) Type the following command to view a list of all the services and press Enter:
Source: Windows Central
Type the following command to stop a service and press Enter:
Stop-Service -Name «SERVICE-NAME»
For example, this command stops the printer spooler service on Windows 10:
Stop-Service -Name «spooler»
Source: Windows Central
In the command, replace «SERVICE-NAME» for the name of the service that you intend to stop. If you want to use the display name, replace -Name for -DisplayName and then specify the display name of the service.
Alternatively, you can also use this variant of the command to stop the service:
Set-Service -Name «SERVICE-NAME» -Status stopped
Source: Windows Central
In the command, replace «SERVICE-NAME» for the name of the service that you intend to stop. If you want to use the display name, replace -Name for -DisplayName and then specify the display name of the service. You only need the quotation marks if there’s a space within the name.
Quick tip: If you’re getting a dependency error, you can append the -force option in either of the commands to stop the service. For example, Stop-Service -Name «SERVICE-NAME» -Force .
After you complete the steps, the PowerShell command will stop the service on your device.
Start service
To start a Windows 10 or app service with PowerShell, use these steps:
- Open Start.
- Search for PowerShell, right-click the top result, and select the Run as administrator option.
Type the following command to start a service and press Enter:
Start-Service -Name «SERVICE-NAME»
For example, this command starts the printer spooler service on Windows 10:
Start-Service -Name «spooler»
Source: Windows Central
In the command, replace «SERVICE-NAME» for the name of the service. Using the display name is supported, replacing -Name for -DisplayName and then specify the display name of the service.
Alternatively, you can also use this variant of the command to start a service:
Set-Service -Name «SERVICE-NAME» -Status running
Source: Windows Central
In the command, replace «SERVICE-NAME» for the name of the service. If you want to use the display name, replace -Name for -DisplayName and then specify the display name of the service.
Once you complete the steps, the service will start on your computer.
Disable service
To disable a service using a PowerShell command, use these steps:
- Open Start.
- Search for PowerShell, right-click the top result, and select the Run as administrator option.
Type the following command to disable a service and press Enter:
Set-Service -Name «SERVICE-NAME» -Status stopped -StartupType disabled
In the command, update «SERVICE-NAME» for the name of the service. If you want to use the display name of the service, then replace -Name for -DisplayName and specify the service name. If you want to disable the service without stopping it immediately, you can remove the -Status stopped portion of the command.
For example, this command disables the printer spooler service on Windows 10:
Set-Service -Name «spooler» -Status stopped -StartupType disabled
Source: Windows Central
After you complete the steps, the PowerShell command will disable the specified service.
Enable service
To enable a specific background service with PowerShell, use these steps:
- Open Start.
- Search for PowerShell, right-click the top result, and select the Run as administrator option.
Type the following command to enable a service and press Enter:
Set-Service -Name «SERVICE-NAME» -Status running -StartupType automatic
For example, this command enables the printer spooler service using PowerShell:
Set-Service -Name «spooler» -Status running -StartupType automatic
Source: Windows Central
Quick note: You may able to use the display -DisplayName option, but the command may also prompt you to supply the name of the service, adding an extra step to the process. If you want to enable the service without starting it immediately, you can remove the -Status running portion of the command.
Once you complete the steps, PowerShell will enable the service specified with the command.
How to manage services using Command Prompt
If you’re comfortable using the command line, Command Prompt offers the «net» command (older) to stop or start, or the «sc» command (newer) to stop, start, disable, or enable services on Windows 10.
Stop service
To stop a Windows 10 or app service with Command Prompt, use these steps:
- Open Start.
- Search for Command Prompt, right-click the top result, and select the Run as administrator option.
(Optional) Type the following command to view a list of all the services and press Enter:
sc queryex state=all type=service
Source: Windows Central
Type the following command to stop a service and press Enter:
net stop «SERVICE-NAME»
In the command, replace «SERVICE-NAME» for the name or display name of the service. You only need the quotation marks if there’s a space within the name.
For example, this command stops the printer spooler using the service name:
net stop «spooler»
Source: Windows Central
Alternatively, you can also use the more advanced «sc» command:
sc stop «SERVICE-NAME»
For example, this command stops the printer spooler using the service name:
sc stop «spooler»
Source: Windows Central
After you complete the steps, the command will stop the specified service on Windows 10.
Start service
To start a service with the command line, use these steps:
- Open Start.
- Search for Command Prompt, right-click the top result, and select the Run as administrator option.
Type the following command to start a service and press Enter:
net start «SERVICE-NAME»
In the command, replace «SERVICE-NAME» for the name or display name of the service. You only need the quotation marks if there’s a space within the name.
For example, this command starts the printer spooler using the service name:
net start «spooler»
Source: Windows Central
Alternatively, you can also use the «sc» command:
sc start «SERVICE-NAME»
For example, this command starts the printer spooler using the service name:
sc start «spooler»
Source: Windows Central
Once you complete the steps, the command will execute and start the service you specified.
Disable service
To disable a service with Command Prompt, use these steps:
- Open Start.
- Search for Command Prompt, right-click the top result, and select the Run as administrator option.
Type the following command to disable a service and press Enter:
sc config «SERVICE-NAME» start=disabled
In the command, replace «SERVICE-NAME» for the name of the service that you want to disable.
For example, this command disables printer spooler using the service name:
sc config «spooler» start=disabled
Source: Windows Central
(Optional) Type the following command to stop the service and press Enter:
sc stop «SERVICE-NAME»
Quick note: When you disable a service, it doesn’t stop the current state of the service. You can either restart your computer or stop the service using the above command.
After you complete the steps, the sc command will run disabling the Windows 10 or app service you specified.
Enable service
To enable a service with a command, use these steps:
- Open Start.
- Search for Command Prompt, right-click the top result, and select the Run as administrator option.
Type the following command to enable a service and press Enter:
sc config «SERVICE-NAME» start=auto
In the command, replace «SERVICE-NAME» for the name of the service that you want to enable.
For example, this command enables the printer spooler automatically using the service name:
sc config «spooler» start=auto
Source: Windows Central
These are alternative commands to enable a particular service:
- Manual: sc config «SERVICE-NAME» start=demand
- Automatic Delayed: sc config «SERVICE-NAME» start=delayed-auto
(Optional) Type the following command to start the service and press Enter:
sc start «SERVICE-NAME»
Once you complete the steps, the service will enable and start automatically on reboot according to the command you used.
You can only use the «net» command to start or stop services. The «sc» command allows you to perform more tasks, including start, stop, enable, or disable services, among other options. If you’re choosing to manage services with command lines, then, in either case, it’s best to use the service name instead of the display name.
Also, when using any of the methods outlined above, consider that making modifications to the default settings can alter the operation of one or more features that depend on that service negatively affecting the experience. Furthermore, if you restart a service, you might be required to start its dependencies manually as well to make the app or feature operational again.
We’re focusing this guide on Windows 10, but the ability to manage services has been available for several years, which means that you can refer to this guide if you’re still running Windows 8.1, Windows 7, and older versions.
More Windows 10 resources
For more helpful articles, coverage, and answers to common questions about Windows 10, visit the following resources:
Microsoft’s Surface Duo is not ‘failing up’
Microsoft announced this week that it was expanding Surface Duo availability to nine new commercial markets. While Surface Duo is undoubtedly a work in progress, this is not a sign of a disaster. It’s also doesn’t mean that Surface Duo is selling a ton either. Instead, the reason for the expansion is a lot more straightforward.
Here’s what you can do if Windows 10 update KB5001330 is causing issues
In this guide, we’ll show you the steps to get rid of the update KB5001330 to fix profile, gaming, and BSoD problems with the Windows 10 October 2020 Update and May 2020 Update.
Review: NZXT made its first AMD motherboard and it’s brilliant
NZXT made its first motherboard with an AMD chipset. The N7 B550 supports the latest AMD Ryzen processors and there’s plenty to love about this platform. To differentiate the N7 B550, NZXT made notable changes to the layout of the motherboard to make it easy to create a clean PC build.
These are the best PC sticks when you’re on the move
Instant computer — just add a screen. That’s the general idea behind the ultra-portable PC, but it can be hard to know which one you want. Relax, we have you covered!