Команда для просмотра служб windows

Обновлено:
Опубликовано:

Мы рассмотрим несколько универсальных способов, которые помогут открыть оснастку Службы Windows для различных версий операционной системы. В качестве примеров приведены скриншоты от Windows 10, однако, для других версий системы мало что поменялось, и инструкция подходит для Windows 11 и 7, а также серверной линейке.

Для открытия оснастки «Службы» могут потребоваться права администратора. Необходимо зайти в Windows под соответствующим пользователем. В противном случае, будет предлагаться ввести пароль для привилегированного аккаунта.

Способы открыть службы:

С помощью командной строки
В панели управления
Используя поиск Windows

Способ 1. Командная строка

Вызываем командную строку любым удобным методом:

  1. Используем комбинацию WIN + R.
  2. Кликаем правой кнопкой мыши по Пуск и выбираем Терминал / Windows PowerShell от администратора.
  3. Правой кнопкой мыши по Пуск — Выполнить.

В открывшемся окне или командной стоке вводим services.msc.

а) командная строка cmd:

services.msc

б) PowerShell:

Start-Process services.msc

в) окно Выполнить:

Ввод команды services.msc для запуска служб

Откроется оснастка «Службы».

Способ 2. Панель управления

Откройте панель управления: в Windows 11 или 10 правой кнопкой мыши по ПускПанель управления. В Windows 7: левой кнопкой по ПускПанель управления.

Также можно использовать команду:

control

В открывшемся окне в правой верхней части найдите строку поиска и введите Службы:

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

Способ 3. Поиск Windows

Для того, чтобы найти множество оснасток управления системой хорошо подходит встроенная функция поиска. Чтобы ей воспользоваться кликните по значку поиска на нижней панели и введите Службы.

* вместо значка может быть строка поиска.
** ни значка, ни строки поиска может не быть. Тогда нажимаем правой кнопкой по ПускНайти.

Среди результатов в самом верху появится нужный пункт. Кликните по нему правой кнопкой мыши и выберите Запуск от имени администратора:

Результаты поиска служб

В Windows 7 процесс аналогичен, за исключением того, что строка поиска находится в нижней части меню Пуск.

Была ли полезна вам эта инструкция?

Да            Нет

The services in Windows can be listed 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 listed using the command-line prompt (CMD) or the PowerShell.

In this note i am showing how to list the services and how to search for a specific service in Windows using the command-line prompt (CMD) or the PowerShell.

Cool Tip: List processes in Windows from the CMD! Read more →

List Services Using Command Line (CMD)

List all services:

C:\> sc queryex type=service state=all

List service names only:

C:\> sc queryex type=service state=all | find /i "SERVICE_NAME:"

Search for specific service:

C:\> sc queryex type=service state=all | find /i "SERVICE_NAME: myService"

Get the status of a specific service:

C:\> sc query myService

Get a list of the running services:

C:\> sc queryex type=service
- or -
C:\> sc queryex type=service state=active
-or -
C:\> net start

Get a list of the stopped services:

C:\> sc queryex type=service state=inactive

Cool Tip: Start/Stop a service in Windows from the CMD & PowerShell! Read more →

List all services:

PS C:\> Get-Service

Search for specific service:

PS C:\> Get-Service | Where-Object {$_.Name -like "*myService*"}

Get the status of a specific service:

PS C:\> Get-Service myService

Get a list of the running services:

PS C:\> Get-Service | Where-Object {$_.Status -eq "Running"}

Get a list of the stopped services:

PS C:\> Get-Service | Where-Object {$_.Status -eq "Stopped"}

Was it useful? Share this post with the world!

How to block File Sharing for one or more IP Addresses in Windows

As you most likely already know, in Windows operating systems, a Windows service is a computer program that operates in the background, just like daemons in a Unix-like environment. They can be configured to either start when the operating system is started and run in the background as long as Windows is running, or started manually using the Service Manager tool, which can be launched by typing
services.msc  from the command prompt or by opening the start menu, typing «services» from the Start Menu and then launching the Service Manager icon that should show up right away.

In this post we’ll see some useful command-line prompt (CMD) and Powershell commands that can be used from most Windows environments (including Windows 10 and Windows Server) to list the installed / active / inactive services, as well as search for a specific service in Windows.

If you’re looking for a complete list of all the existing/available Windows Services, check out this post.

Command-Line (CMD) commands

How to list all Windows services:

sc queryex type=service state=all

How to list all Windows services (names only):

sc queryex type=service state=all | find /i «SERVICE_NAME:»

How to list all the running Windows services, excluding the stopped / inactive ones:

sc queryex type=service state=active

How to list all the stopped / inactive Windows services, excluding the running ones:

sc queryex type=service state=inactive

How to search for a given Windows service (by name):

sc queryex type=service state=all | find /i «SERVICE_NAME: MyServiceName»

How to retrieve the status of a given service (by name):

PowerShell commands

How to list all Windows services:

How to list all Windows services (names only):

sc queryex type=service state=all | find /i «SERVICE_NAME:»

How to list all the running Windows services, excluding the stopped / inactive ones:

Get-Service | WhereObject {$_.Status -eq «Running»}

How to list all the stopped / inactive Windows services, excluding the running ones:

Get-Service | WhereObject {$_.Status -eq «Stopped»}

How to search for a specific Windows service:

Get-Service | WhereObject {$_.Name -like «*MyServiceName*»}

How to retrieve the status of a given service (by name):

Get-Service MyServiceName*

Conclusions

We definitely hope that this post will help those system administrators that are looking for a quick and effective way to list, filter, search and/or retrieve the status of the Windows Services installed on their Windows machines using the command-line prompt (CMD) or Powershell.

The running applications you see on your screen are a fraction of what is happening in Windows. From managing device drivers to ensuring security, a bunch of background processes maintain a functioning Windows PC.

For any system administrator overseeing multiple computers, it is important to be able to view the status of these critical services. The Task Manager approach is too slow for this, and you cannot automate it with a script.

The solution? Command-line tools. Using the Command Prompt or PowerShell, you can quickly get a read on the operational Microsoft services running on a system, helping you diagnose any issues swiftly. 

Listing Windows Services In the Command Prompt

While not as flexible or powerful as Windows PowerShell, the Command Prompt is still an excellent tool for system administrators. You can use the queryex command to get the status of both active and disabled services and then use the taskkill command to end pesky processes.

  1. To use the queryex command, run Command Prompt as an Administrator. You can find the app by searching cmd in the start menu.

  1. There are many ways of using the sc queryex command. Type and State are the two most commonly used parameters. For example, enter the following command to view all  Windows processes:

sc queryex type=service state=all

  1. The default view can be a bit overwhelming. You can display just the names of processes to make the list easier to parse:

sc queryex type=service state=all | find /i “SERVICE_NAME:”

  1. By default, the command lists all active processes. To look for inactive ones, modify the state parameter:

sc queryex type=service state=inactive

  1. You can also query the status of a specific process by its name. This is incredibly useful for system administrators, as they can set up batch files to check many processes at once. Here’s an example:

sc query DeviceInstall

Listing Windows Services in PowerShell

PowerShell is meant to be a dedicated command-line shell for modern Windows. As such, it provides access to pretty much every operating system component through commands, and Windows services are no exception.

PowerShell’s advantage is that you can automate it easily. All PowerShell commands can be compiled into complex scripts, allowing you to set up system administration tasks on multiple PCs without hassle.

  1. Start by opening PowerShell. You can search for it in the Start Menu; just make sure to run an elevated instance (i.e., as an Administrator).

  1. The simplest command for listing Windows services on PowerShell is Get-Service. It shows all services on your computer, along with their status and names. The only problem is that the list of services can be pretty long.

  1. When using Get-Service, it is a better idea to export the list to a text file. You can do this using pipes, like this:

Get-Service | Out-File “C:\logs\All_Services.txt”

  1. To look up the status of a specific service, follow the Get-Service command with the name of the service. You can request the status of multiple processes by separating their names with commas.

Get-Service CryptSvc, COMSysApp

  1. Pipes can also be used to combine the Get-Service cmdlet with the Where-Object function and filter the results by Status. The following command illustrates this by getting all Running services:

Get-Service | Where-Object {$_.Status -EQ “Running”}

Checking Service Dependencies

Any complex process is split into multiple interdependent services. This is why simply getting the status of a particular service is often not enough. You also need to check the status of the services that service is dependent on.

  1. To view the services required by a particular service, use the -RequiredServices flag with the Get-Service cmdlet. Here’s an example:

Get-Service -Name CryptSvc –RequiredServices

  1. Similarly, to get a list of services that depend on a specific service, take advantage of the -DependentServices flag.

Get-Service -Name CryptSvc -DependentServices

These two flags are crucial in writing scripts to automatically start or stop Windows services, as they give you a way to keep track of all the services connected with the affected service.

Listing Windows Services On Remote Computers

The PowerShell method is not limited to local computers. You can use the Get-Service cmdlet with the same syntax described above to query the processes of remote PCs as well. Just append the -ComputerName flag at the end to specify which remote computer to retrieve information from. 

Here’s an example:

get-service CryptSvc -ComputerName Workstation7

Managing Windows Services in PowerShell

Getting the status of services isn’t the only thing you can do in Windows PowerShell. As a full-fledged scripting environment, it provides script alternatives to all GUI options. 

Powershell cmdlets can stop, start, restart, or even modify services. Paired with automated Get-Service commands, PowerShell scripts can be written to fully automate everyday system management tasks.

  1. In addition to querying the status of services, you can also use PowerShell to manage them. Starting or stopping services can be done with a single command, requiring only the name of the service. For example, this is how you can stop a service:

Stop-Service -Name Spooler

  1. Starting a service goes similarly:

Start-Service -Name Spooler

  1. If a service isn’t working correctly, you can also choose to restart it:

Restart-Service -Name Spooler

  1. There is also the Set-Service cmdlet that can be used to change the properties of a service. Here we disable the automatic startup of the Print Spooler service:

Set-Service ‘Spooler’ -StartupType Disabled

What Is the Best Way to List Windows Services?

Whether you are running Windows 10 or a Windows Server, being able to view a list of all Windows services can be handy. You can diagnose issues with critical system functions or stop unnecessary Microsoft services to improve performance.

For this purpose, PowerShell is the best option. While you can obtain a service list in Command Prompt, the additional functionality provided by PowerShell is more useful.

You can use PowerShell cmdlets to get the service status of Windows processes, filtering them by their status or other parameters. It is also easy to determine dependent services and start or stop them as required.

Related Posts

  • How to Fix a “This file does not have an app associated with it” Error on Windows
  • How to Add OneDrive to Windows File Explorer
  • How to Fix an Update Error 0x800705b4 on Windows
  • How to Resolve “A JavaScript error occured in the main process” Error on Windows
  • How to Fix the Network Discovery Is Turned Off Error on Windows

Do you want to access all the Windows services on your computer? Then you need to open the Services app (services.msc), which lets you set what services run when Windows starts, disable the services you do not need, and perform other useful actions. Here’s how to open Services in Windows 10 and Windows 11:

NOTE: This guide was made using Windows 10 and Windows 11. However, most of the instructions apply to older versions of Windows too. If you do not know your Windows version, read this tutorial: How to tell what Windows I have (11 ways). I also recommend reading this guide which explains what Windows services are and what they do.

1. How to open Services using Search

Search is always a great choice for opening apps as fast as possible. If you’re using Windows 10, either press the Windows key on your keyboard or click/tap inside the Search box and type the word services. Then, press Enter when you see the Services search result, or click or tap on it. For more information, here are twelve tips on how to search in Windows 10.

Search for services in Windows 10

Search for services in Windows 10

Similarly, if you’re using Windows 11, click or tap the Search icon on the taskbar and type services. Or press the Windows key, type services, and then press Enter when you see the search results.

Search for services in Windows 11

Search for services in Windows 11

TIP: If you’re unfamiliar with Windows 11, here’s how to use Windows 11’s Search feature.

2. How to open Services from the Run window

Press the Windows + R keys on your keyboard to open the Run window. Type services.msc and hit Enter on your keyboard or click/tap the OK button.

Run services.msc

Run services.msc

The Services app window is now open.

3. How to open Services from CMD, PowerShell, or Windows Terminal

You can also use the Command Prompt, PowerShell, or Windows Terminal to view your Windows services with the help of one simple command. Just open CMD or the command-line app you prefer, and type:

services.msc

Type services.msc in CMD, PowerShell, or Windows Terminal

Type services.msc in CMD, PowerShell, or Windows Terminal

Press Enter, and the Services window immediately pops up.

TIP: Here’s which Windows services are safe to disable and when.

4. How to start Services from File Explorer (the location of services.msc)

Some people want to know the location of the services.msc file on their disk. If you’re also curious, you can find this file by opening File Explorer (Windows + E) and navigating to

C:\Windows\System32

Scroll down to the files that start with the letter S, and you’ll find services.msc among them.

The location of services.msc

The location of services.msc

Double-clicking or double-tapping on the file opens the Services window.

5. How to create a shortcut to Services in Windows

You can also create a shortcut to services.msc, the file used to open the Services window. To do that, right-click or press-and-hold somewhere on the empty space on your desktop, and choose New > Shortcut.

Create a new shortcut

Create a new shortcut

In the Create Shortcut wizard, type services.msc, click or tap Next, enter a name for your shortcut, and then click or tap Finish.

Use services.msc as the target for your shortcut

Use services.msc as the target for your shortcut

You can then use the shortcut you’ve created to quickly open the list of Windows services on your computer.

TIP: You can also download our collection of Windows shortcuts, and then extract and use the Services shortcut included in the Administrative Tools folder of shortcuts we’ve created for you.

Download and extract our shortcut to Services

6. How to open Services from the Start Menu

In Windows 10, you have a Services shortcut directly on the Start Menu. To access it, click or tap the Windows icon on the taskbar, and scroll down the list of programs until you see Windows Administrative Tools. Next, click or tap on this folder to expand it, and then scroll down to the Services shortcut and click or tap on it.

Finding Services on the Windows 10 Start Menu

Finding Services on the Windows 10 Start Menu

In Windows 11, things are more complicated: click or tap the Windows icon and then the All Apps button on the top-right corner of the Start Menu.

Go to Start data-lazy-src=

Go to Start > All apps

Scroll down the All apps list until you find Windows Tools, and click/tap on it.

Scroll down and open Windows Tools

Scroll down and open Windows Tools

Windows Tools opens in a new window. In it, find the Services shortcut and double-click (or double-tap) on it.

Look for the Services shortcut in Windows Tools

Look for the Services shortcut in Windows Tools

You can finally see the Services window, listing all your Windows services.

7. How to access Services using the Control Panel

Even if Microsoft is slowly phasing out the Control Panel, we still have it in Windows, and we can use it to access many administrative tools, including Services. First, start the Control Panel, and go to System and Security. At the bottom, you’ll see either Windows Tools (if you’re using Windows 11), or Administrative Tools (if you’re using Windows 10).

Open Control Panel data-lazy-src=

Open Control Panel > System and Security

A new window opens, where you can find the Services shortcut alongside many others.

Look for the Services shortcut in Windows Tools or Administrative Tools

Look for the Services shortcut in Windows Tools or Administrative Tools

Double-click or double-tap on Services to open it.

8. How to view your Windows services from Computer Management

The list of Windows services can also be found in the Computer Management app. One way to open Computer Management is to right-click (or press-and-hold) the Windows icon on the taskbar or press the Windows + X keys on your keyboard. In the WinX menu, choose Computer Management.

Press Win + X and choose Computer Management

Press Win + X and choose Computer Management

When you see the Computer Management window, click or tap on Services and Applications in the left panel, and then double-click or double-tap on Services in the middle one.

In Computer Management, go to Services and Applications data-lazy-src=

In Computer Management, go to Services and Applications > Services

The list of Windows services is then shown.

9. How to open Services using Task Manager

Few people know that the Task Manager can be used to run apps too, not just end their functioning. If you’re using Windows 10, after opening the Task Manager, click or tap on File and choose Run new task.

In Task Manager, go to File data-lazy-src=

In Task Manager, go to File > Run new task

You see the Create new task window, which is similar to the Run window mentioned earlier. In the Open field, type services.msc and then click or tap OK. The Services window immediately opens.

Type services.msc and click OK

Type services.msc and click OK

If you’re using Windows 11, things are a bit simpler. After you open Task Manager, click or tap the Run new task button in the Processes tab. You see the Create new task window, where you type services.msc and click or tap OK.

In Task Manager, go to Processes data-lazy-src=

In Task Manager, go to Processes > Run new task

That’s easy, isn’t it?

Which method of opening Services do you prefer?

Now you know all the ways to open the Services window and view which Windows services are installed and running on your PC. Try them out, identify the ones that work best for you, and share your preferred method in a comment below.

Источник

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

0 комментариев
Старые
Новые Популярные
Межтекстовые Отзывы
Посмотреть все комментарии
  • 0x80246017 ошибка обновления windows 11
  • Appmodel windows 10 грузит процессор
  • Создание ключа безопасности для windows 10 из флешки
  • Usb vid 0a12 pid 0001 rev 3164 windows 10
  • Оптимизация анимации windows 10