IsPortActive

1.0.0

This script checks if a port is currently active or in use. It checks for active TCP and UDP connections on a specified port, by process name, or by a process ID.

Here are key switches to guide the script's behavior:
-Port to specify the port number to check for active connections.
-ProcessName to specify the name of the process to check for active connections.
-Proc
This script checks if a port is currently active or in use. It checks for active TCP and UDP connections on a specified port, by process name, or by a process ID.

Here are key switches to guide the script's behavior:
-Port to specify the port number to check for active connections.
-ProcessName to specify the name of the process to check for active connections.
-ProcessId to specify the process ID to check for active connections.

Additional utilities include:
-Version switch displays the current version of the script.
-Help switch brings up the help information for the script usage.
-CheckForUpdate switch verifies if the current script version is up-to-date.
Show more

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Script -Name IsPortActive

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Author(s)

asheroto

Package Details

Owners

Tags

PowerShell Windows port active network check program listening

Functions

LineSeparator Check-GitHubRelease Get-Connections

Dependencies

This script has no dependencies.

Release Notes

[Version 0.0.1] - Initial Release.
[Version 0.0.2] - Removed function.
[Version 0.0.3] - Improved description.
[Version 0.0.4] - Fix example.
[Version 0.0.5] - Added code signing cert.
[Version 1.0.0] - Totally refactored script. Added support for UDP ports. Added support for checking by process name and process ID. Added support for returning service/display name if it's svchost. Added -Help, -CheckForUpdate, and -Version.

FileList

Version History

Version Downloads Last updated
1.0.0 (current version) 75 6/24/2023
0.0.5 10 5/19/2023
0.0.4 57 7/6/2022
0.0.3 11 7/6/2022
0.0.2 12 7/6/2022
0.0.1 14 7/6/2022
Show more