Get the App
SLTechnology News&Howtos  ›  Servers  › 

Methods for windows to view services through ports and disable services

Shulou Source: shulou.com Published: 2022-06-03 03:19:32 11月15日 Update

1. Open the command prompt window and enter netstat -ano to view the port and PID number. For example, in the example, we want to find out which service port 21 belongs to.

From the figure, we can see that the PID number of port 21 is 1252.

If the port information is too much, we can use the find parameter to filter

2. Open the Task Manager and view the corresponding PID number and process.

Open the Task Manager and switch to the Process window, as shown in the figure below:

In the window, if there is no PID column, add it in View, as shown in the figure:

Now you can see the PID column, as shown in the figure:

Find the process with PID 1252, as shown in the figure:

3. Find the corresponding process service in the system "Service". If the service is not needed, disable it. As shown in the figure:

Service disabled, check port again.

Port 21 no longer exists, and the corresponding port vulnerability does not exist.

Tags: Ports services such as figure process task management information again parameters commands prompts vulnerabilities examples systems diagrams switches prompts inputs methods Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Apple Microsoft Redmi Docker Xiaomi