OperatorOSScriptForge
Menu
Script Actions
Verified OperatorOS Official
Official OperatorOS / networking

Networking Port Connectivity Test

Read-only Networking script for port connectivity test.

Script Actions

Script Actions

Credibility

Last reviewed

Jun 4, 2026

Last tested

Jun 1, 2026

PowerShell

Windows PowerShell 5.1, PowerShell 7

Safety score

63/100

Documentation

100/100

Community rating

Coming soon

Downloads

Coming soon

Review status

approved

Verified by OperatorOS

Review

OperatorOS verified

Catalog

Official library

Safety

Static scan completed

Networking Port Connectivity Test is part of the official OperatorOS ScriptForge catalog. It has been reviewed for metadata completeness, safety scan results, PowerShell compatibility, and technician-facing documentation.

Script Body


param(
  [string]$ComputerName = 'localhost',
  [int]$Port = 443
)

$OperatorOSFrameworkPath = Join-Path -Path $PSScriptRoot -ChildPath '..\..\..\framework\OperatorOS-ScriptFramework.psm1'
if (Test-Path -LiteralPath $OperatorOSFrameworkPath) {
    Import-Module $OperatorOSFrameworkPath -Force
}


# OperatorOS ScriptForge official read-only audit script
# Category: Networking
# Report: Port Connectivity Test

$ErrorActionPreference = 'Stop'

Test-NetConnection -ComputerName $ComputerName -Port $Port | Select-Object ComputerName,RemotePort,TcpTestSucceeded

Requirements

  • Windows PowerShell 5.1 or newer with network cmdlets available.

Parameters

ComputerName

string / optional

Computer or host name to test.

Port

number / optional

TCP port to test.

Examples

Run report

Runs the read-only audit report with default options.

./networking-port-connectivity-test.ps1

Changelog

1.0.0 - Initial official read-only audit/reporting seed. 1.1.0 - Added OperatorOS enterprise framework import bootstrap.