Would you like to learn how to list the open UDP ports using Powershell? In this tutorial, we are going to show you how to use Powershell to create a list of UDP ports in the listening state on a computer running Windows.
• Windows 2012 R2
• Windows 2016
• Windows 2019
• Windows 10
Equipment list
The following section presents the list of equipment used to create this tutorial.
As an Amazon Associate, I earn from qualifying purchases.
Related tutorial – PowerShell
On this page, we offer quick access to a list of tutorials related to PowerShell.
Tutorial Powershell – List the open UDP ports
As an Administrator, start a new POWERSHELL command-line prompt.
List the current UDP connections.
Here is the command output.
List the open UDP ports.
Here is the command output.
In our example, we listed only UDP ports in the listening state.
Optionally, sort the output based on the UDP port number.
Here is the command output:
In our example, we listed the open UDP ports in the listening state.
In our example, we organized the command output based on the UDP port number.
Congratulations! You are able to list the open UDP ports using Powershell.
Tutorial Powershell – List the UDP connections using a script
As an Administrator, start a new POWERSHELL command-line prompt.
List all connections by a specific IP address.
Here is the command output.
List all connections by a UDP port.
Here is the command output.
List the process name and ID of a local UDP port.
Here is the command output.
Congratulations! You are able to list the UDP ports information using a Powershell script.