Команда запустить службу windows

on August 15, 2010

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:

net stop servicename

To start a service:

net start servicename

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.

C:\>net start webclient
System error 5 has occurred.
Access is denied.
C:\>

To disable a service:

sc config servicename start= disabled

To enable a service:

sc config servicename start= demand

To make a service start automatically with system boot:

sc config servicename start= auto

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.

C:\>sc config webclient start= auto
[SC] OpenService FAILED 5:
Access is denied.

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:

net start RpcSsTo stop Remote procedure call service
net stop RpcSs

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.

Display Name of the service ServiceName which should be used with ‘net’ and ‘sc config’ commands.
Alerter Alerter
Application Layer Gateway Service ALG
Application Management AppMgmt
ASP.NET State Service aspnet_state
Windows Audio AudioSrv
Background Intelligent Transfer Service BITS
Computer Browser Browser
Bluetooth Support Service BthServ
Bluetooth Service btwdins
SMS Agent Host CcmExec
Indexing Service CiSvc
ClipBook ClipSrv
.NET Runtime Optimization Service v2.0.50727_X86 clr_optimization_v2.0.50727_32
COM+ System Application COMSysApp
Cryptographic Services CryptSvc
Cisco Systems, Inc. VPN Service CVPND
DCOM Server Process Launcher DcomLaunch
DHCP Client Dhcp
Logical Disk Manager Administrative Service dmadmin
Logical Disk Manager dmserver
DNS Client Dnscache
Lenovo Doze Mode Service DozeSvc
Error Reporting Service ERSvc
Event Log Eventlog
COM+ Event System EventSystem
Intel(R) PROSet/Wireless Event Log EvtEng
Fast User Switching Compatibility FastUserSwitchingCompatibility
Windows Presentation Foundation Font Cache 3.0.0.0 FontCache3.0.0.0
Group Policy Monitor GPMON_SRV
Help and Support helpsvc
HID Input Service HidServ
HTTP SSL HTTPFilter
ThinkPad PM Service IBMPMSVC
Windows CardSpace idsvc
IMAPI CD-Burning COM Service ImapiService
iPassConnectEngine iPassConnectEngine
iPassPeriodicUpdateApp iPassPeriodicUpdateApp
iPassPeriodicUpdateService iPassPeriodicUpdateService
IviRegMgr IviRegMgr
Server lanmanserver
Workstation lanmanworkstation
Lenovo Camera Mute LENOVO.CAMMUTE
Lenovo Microphone Mute Lenovo.micmute
TCP/IP NetBIOS Helper LmHosts
Intel(R) Management and Security Application Local Management Service LMS
McAfee Framework Service McAfeeFramework
McAfee McShield McShield
McAfee Task Manager McTaskManager
Machine Debug Manager MDM
Messenger Messenger
NetMeeting Remote Desktop Sharing mnmsrvc
Distributed Transaction Coordinator MSDTC
Windows Installer MSIServer
Net Driver HPZ12 Net Driver HPZ12
Network DDE NetDDE
Network DDE DSDM NetDDEdsdm
Net Logon Netlogon
Network Connections Netman
Net.Tcp Port Sharing Service NetTcpPortSharing
Network Location Awareness (NLA) Nla
NT LM Security Support Provider NtLmSsp
Removable Storage NtmsSvc
Microsoft Office Diagnostics Service odserv
Office Source Engine ose
Plug and Play PlugPlay
Pml Driver HPZ12 Pml Driver HPZ12
IPSEC Services PolicyAgent
Power Manager DBC Service Power Manager DBC Service
Protected Storage ProtectedStorage
Remote Access Auto Connection Manager RasAuto
Remote Access Connection Manager RasMan
Remote Desktop Help Session Manager RDSessMgr
Intel(R) PROSet/Wireless Registry Service RegSrvc
Routing and Remote Access RemoteAccess
Remote Registry RemoteRegistry
Remote Procedure Call (RPC) Locator RpcLocator
Remote Procedure Call (RPC) RpcSs
QoS RSVP RSVP
Intel(R) PROSet/Wireless WiFi Service S24EventMonitor
Security Accounts Manager SamSs
Smart Card SCardSvr
Task Scheduler Schedule
Secondary Logon seclogon
System Event Notification SENS
Windows Firewall/Internet Connection Sharing (ICS) SharedAccess
Shell Hardware Detection ShellHWDetection
Print Spooler Spooler
System Restore Service srservice
SSDP Discovery Service SSDPSRV
Windows Image Acquisition (WIA) stisvc
System Update SUService
MS Software Shadow Copy Provider SwPrv
Performance Logs and Alerts SysmonLog
Telephony TapiSrv
Terminal Services TermService
Themes Themes
ThinkVantage Registry Monitor Service ThinkVantage Registry Monitor Service
Telnet TlntSvr
On Screen Display TPHKSVC
Distributed Link Tracking Client TrkWks
TVT Scheduler TVT Scheduler
Windows User Mode Driver Framework UMWdf
Intel(R) Management & Security Application User Notification Service UNS
Universal Plug and Play Device Host upnphost
Uninterruptible Power Supply UPS
Volume Shadow Copy VSS
Windows Time W32Time
WebClient WebClient
Windows Management Instrumentation winmgmt
Portable Media Serial Number Service WmdmPmSN
Windows Management Instrumentation Driver Extensions Wmi
WMI Performance Adapter WmiApSrv
Security Center wscsvc
Automatic Updates wuauserv
SMS Remote Control Agent Wuser32
Wireless Zero Configuration WZCSVC
Network Provisioning Service xmlprov

The services in Windows can be started using the Service Manager tool.

To start the Service Manager GUI, press ⊞ Win keybutton to open the start menu, type in services to search for the Service Manager and press Enter to launch it.

The services can also be started using the command-line prompt (CMD) or the PowerShell.

In this note i am showing how to start, stop or check the status of a service in Windows using the command-line prompt (CMD) or the PowerShell.

Cool Tip: List services in Windows from the CMD & PowerShell! Read more →

Start Service Using Command Line (CMD)

To avoid “Access is denied” errors, start CMD as an administrator: press ⊞ Win keybutton to open the start menu, type in cmd to search for the command prompt and press Ctrl + Shift + Enter to launch it as administrator.

Use the following commands to start, stop or check the status of a service in Windows on the command-line prompt (CMD).

Start a service:

C:\> net start serviceName

Get a service status:

C:\> sc query serviceName

Stop a service:

C:\> net stop serviceName

Cool Tip: Kill a hanging process in Windows from the CMD! Read more →

To avoid “Access is denied” errors, start PowerShell as an administrator: press ⊞ Win keybutton to open the start menu, type in powershell to search for the PowerShell and press Ctrl + Shift + Enter to launch it as administrator.

Use the following commands to start, stop or check the status of a service in Windows using the PowerShell.

Start a service:

PS C:\> Start-Service serviceName

Get a service status:

PS C:\> Get-Service serviceName

Stop a service:

PS C:\> Stop-Service serviceName

Was it useful? Share this post with the world!

The Task Manager lets you quit apps and stop and start a Windows service. It’s an easy, graphical way to stop a service if you ever need to but you can also stop and start a Windows service from the command prompt. The process is easy enough though it goes without saying that you need administrative rights to stop or start a service on Windows.

SPOILER ALERT: Scroll down and watch the video tutorial at the end of this article.

Open command prompt by entering Command Prompt in Windows Search. Right-click it and select ‘Run as administrator’ from the context menu. Alternatively, you can open Command Prompt with admin rights from the Run box by typing cmd, and hitting Ctrl+Shift+Enter.

Scan For Running Services

If you’re looking to stop and start a Windows service from the Command Prompt, chances are you may not know what a service is called. The task manager lists them so it’s easier but you can also scan for and list all running Windows services. Enter the following command to list all services that are currently running.

net start

You can stop any one of the services with the following commands. If the service name has spaces, you should enclose it in double quotes.

Syntax

NET STOP service name

Example

NET STOP "Apple Mobile Device Service"

 

Start Service

You can start a service with the following command. If the service name has spaces, make sure you enclose it in double quotes.

Syntax

NET START service name

Example

NET START "Apple Mobile Device Service"

If you want to stop and start a Windows service from the Command Line in one go, you can combine the above two commands as follows;

Syntax

net stop service name && net start service name

Example

net stop "Apple Mobile Device Service" && net start "Apple Mobile Device Service"

Service Status

The Command Prompt has a built-in tool that can perform other operations on a Windows service. For example, if you need to know whether a service is running or not, you can use this tool to query the status. It’s called sc, and again you need admin rights to use all its commands. You can view a complete list of the commands it supports on the official documentation page maintained by Microsoft. To simply check the status of a service, you can use the following command.

Syntax

sc command service name

Example

sc query “Apple Mobile Device Service”

Be careful which services you choose to stop or start. If you accidentally stop a critical service, your system might crash. Some services may be prone to starting up again automatically once they’re stopped.

default avatar image

Fatima Wahab

Fatima has been writing for AddictiveTips for six years. She began as a junior writer and has been working as the Editor in Chief since 2014.

Fatima gets an adrenaline rush from figuring out how technology works, and how to manipulate it. A well-designed app, something that solves a common everyday problem and looks

Table of Contents

In this tutorial, we will see 3 ways to start/stop/restart services in Windows. Services are mostly required when you need to have some long running functionality in your Server. As you might be aware Microsoft Windows has number of services running at any point of time. A service is basically a long running executable applications that run in their own Windows sessions. You can run services in multiple user contexts. You don’t have to necessarily use the logged in user account. A service can be started, stopped and restarted. In Windows System, you can use multiple methods to stop/start/restart service that we will see in below section. More on Microsoft official website.

3 Ways to Start/Stop/Restart Services in Windows

Also Read: VBoxManage — An Introduction to VirtualBox CLI with Examples

Method 1: Using CMD 

a) Open CMD

You can go to search box and type CMD to open the command line. Once it shows up, right click on it and then click on Run as administrator.

b) Start/Stop/Restart a Service

If you want to start a service then you need to use net start <service> command. Here we are starting Windows Update services by using net start wuauserv command as shown below.

C:\>net start wuauserv
The Windows Update service is starting.
The Windows Update service was started successfully.

If you want to stop a service then you need to use net stop <service> command. Here we are stopping Windows Update service by using net stop wuauserv command as shown below.

C:\>net stop wuauserv
The Windows Update service is stopping.
The Windows Update service was stopped successfully.

In CMD, there is no such option called restart so what you can do is that you can perform net stop <service_name> and net start <service_name> simultaneously as shown below. This will work as if you have restarted the service.

C:\>net stop wuauserv && net start wuauserv
The Windows Update service is stopping.
The Windows Update service was stopped successfully.

The Windows Update service is starting.
The Windows Update service was started successfully.

Method 2: Using PowerShell

a) Open PowerShell

You can go to search box and type PowerShell. Once it shows up, right click on it and then click on Run as administrator.

b) Start/Stop/Restart a Service

If you want to start a windows service then you need to use Start-Service -Name <service_name> command. You can also check the progress by using -Verbose option.

PS C:\> Start-Service -Name wuauserv -Verbose
VERBOSE: Performing the operation "Start-Service" on target "Windows Update (wuauserv)".

If you want to stop a windows service then you need to use Stop-Service -Name <service_name> command. You can also check the progress by using -Verbose option.

PS C:\> Stop-Service -Name wuauserv -Verbose
VERBOSE: Performing the operation "Stop-Service" on target "Windows Update (wuauserv)".

If you want to restart a windows service then you need to use Restart-Service -Name <service_name> command. You can also check the progress by using -Verbose option.

PS C:\> Restart-Service -Name wuauserv -Verbose
VERBOSE: Performing the operation "Restart-Service" on target "Windows Update (wuauserv)".

Method 3: Using GUI

a) Open Services

You can open Run prompt by pressing Windows+R and then typing services.msc to open Services or you can directly search services.msc in the Search section to open Services. Once it shows up, right click on it and then select Run as administrator.

3 Ways to Start/Stop/Restart Services in Windows 2

b) Start/Stop/Restart a Service

You can double click and open the service as shown below. Then Click on Start to start the service. The other way is to right click on that service and then start from there.

3 Ways to Start/Stop/Restart Services in Windows 3

Similarly if you want to stop any service then double click on that service and open it as shown below. Here you can click on Stop to stop the service. Alternatively, you can also right click on that service and then Click on Stop to shutdown the service.

3 Ways to Start/Stop/Restart Services in Windows 4

You will also have the option to restart the service. For example here I am restarting the Windows Event Log service by clicking on Restart as shown below. Alternatively, you can also right click on that service and then click on Restart.

3 Ways to Start/Stop/Restart Services in Windows 5

Иногда вам может понадобится, взять управление службами Windows 10. Чтобы остановить некоторые службы, запустить, отключить службу, задержать запуск или возобновить или приостановить службу Windows.  Необходимо использовать встроенный инструмент в операционной системе Windows -оснастку «Службы». Эта небольшая статья покажет вам, как запустить, остановить или перезагрузить любую службу в Windows 10, с помощью диспетчера Служб, а также Командной строки.

Службы Windows,  обычно запускаются, при старте компьютера в фоновом режиме. Грубо говоря, они обрабатывают задачи низкого уровня, которые как правило не требуют взаимодействия с пользователем. В диспетчере управления службами вы сможете запускать, останавливать, отключать, отложить запуск Служб Windows 10. Давайте посмотрим, как сделать это более подробно.

4 способа как открыть «Службы» в Windows 10.

Способ 1. Открыть службы Windows можно с помощью диалогового окна «Выполнить». 

Нажмите сочетание клавиш Win + R и введите или скопируйте и вставьте команду: services.msc в диалоговом окне «Выполнить» и нажмите Enter.  Это откроет оснастку «Диспетчер служб».

services.msc в диалоговом окне «Выполнить»

Способ 2. Открыть службы Windows можно с помощью меню WinX. 

Кликните правой кнопкой мыши на кнопку «Пуск» или нажмите сочетание клавиш Win + X в открывшемся меню выберите «Управление компьютером», далее перейдите «Службы и приложения» → «Службы».

нажмите сочетание клавиш Win + X  в открывшемся меню выберите «Управление компьютером»

 «Службы и приложения»

«Службы»

Способ 3. Открыть службы Windows с помощью Поиска Windows. 

Откройте меню «Пуск» и начните набирать слово «Служб» на клавиатуре, в найденных результатах кликните мышкой «Службы», это откроет нужную нам оснастку.

Откройте меню «Пуск» и начните набирать слово Служб на клавиатуре

Способ 4. Открыть службы Windows с помощью Классической панели управления. 

Откройте классическую панель управления. Перейдите Панель управления\Система и безопасность\Администрирование\Службы

Панель управления\Система и безопасность\Администрирование

Панель управления\Система и безопасность\Администрирование\Службы

В диспетчере, вы увидите список служб, работающих в системе. Вы также будете иметь возможность посмотреть статус любой Службы — Имя, Описание, Состояние (работает или остановлена), Тип запуска и др..

Вы также будете иметь возможность посмотреть статус любой Службы — Имя, Описание, Состояние (работает или остановлена), Тип запуска и др..

Типы запуска служб Windows 10.

Windows 10 предлагает четыре типа запуска:

  • Автоматический
  • Автоматически (отложенный запуск)
  • Вручную
  • Отключена.

Запуск, остановка, отключение служб Windows 10.

Для запуска, остановки, приостановки, возобновления или перезагрузки любой службы Windows, выберите службу и кликните правой кнопкой мыши на ней. Вам будут предложены эти варианты. См скрин.

Типы запуска служб Windows 10.

Если вы хотите управлять большим количеством опций, дважды кликните на службе, чтобы открыть окно «Свойства».

дважды кликните на службе, чтобы открыть окно Свойства.

В раскрывающемся меню «Тип запуска», вы сможете выбрать как будет запускаться редактируемая вами служба.

В строке Состояние, вы увидите кнопки «Запустить», «Остановить», «Приостановить», «Продолжить» (Возобновить службу).

В окне Свойств, вы также увидите другие вкладки, которые предлагают дополнительные опции и информацию — «Вход в систему», «Восстановление» и «Зависимости».

После того, как вы внесете изменения, вы должны нажать на кнопку «Применить» и при необходимости перезагрузить компьютер, для того чтобы изменения вступили в силу.

Управление службами с помощью Командной строки Windows.

Вы также можете использовать командную строку для Запуска, Остановки, Приостановки, и Возобновления любой службы.

Управление службами с помощью Командной строки Windows.

Откройте командную строку (от имени администратора) и выполните одну из следующих команд:

Для примера используется служба 

Запустить службу:

net startservice

Остановить службу:

net stopservice

Приостановить обслуживание:

net pauseservice

Возобновить обслуживание:

net continueservice

Примечание: Не рекомендуется изменять настройки по умолчанию, если вы не знаете, что вы делаете, так как это может вызвать проблемы в вашей операционной системе. 

Рекомендуем: Все способы открыть Службы в Windows 11

Понравилась статья? Поделить с друзьями:
0 0 голоса
Рейтинг статьи
Подписаться
Уведомить о
guest

0 комментариев
Старые
Новые Популярные
Межтекстовые Отзывы
Посмотреть все комментарии
  • Rdp служба как называется windows 10
  • Пропали колонки в устройствах воспроизведения windows 10
  • Время установки windows в реестре
  • Как использовать proxy windows
  • Устанавливаем windows xp на usb flash drive