Windows – How to list all Services using CMD and Powershell A set of useful Windows command-line and Powershell tools to show the System Services, searching and filtering them and so on

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:

How to list all Windows services (names only):

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

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

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

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):

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

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

How to search for a specific Windows service:

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

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.

 

About Ryan

IT Project Manager, Web Interface Architect and Lead Developer for many high-traffic web sites & services hosted in Italy and Europe. Since 2010 it's also a lead designer for many App and games for Android, iOS and Windows Phone mobile devices for a number of italian companies. Microsoft MVP for Development Technologies since 2018.

View all posts by Ryan

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.