Ways to view and filter system service items using PowerShell in your computer

Source: Internet
Author: User

1, search Powershell, and right-click Windows Powershell, run as an administrator, search without the need to enter all can appear Powershell;

2, enter the following code in the PowerShell and execute:

Get-service | Where status-eq "Running" | Out-gridview

You can open a window that displays a list of all the running system services;

(Get-service refers to obtaining a service where status-eq "Running" means that when the status is Runing, Out-gridview is the output is the grid view)

3. In the same vein, if you need to view all services that stop running, execute the following command:

Get-service | Where status-eq "Stopped" | Out-gridview

4, if any conditions are not written, is the output of all services list:

Get-service | Out-gridview

5, in this list view, we can select the filter in the graphical interface to filter, for example, add a status filter criteria;

6, the value of the status contains running, the same as the result of the first command entered above, showing all the running system services;

7, you can also continue to add filter conditions, such as in all running services, to view the service name contains RPC keyword services.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.