بنقرة واحدة
network-diagnostics
Windows net diag: ping, traceroute, DNS, port scan (PowerShell)
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Windows net diag: ping, traceroute, DNS, port scan (PowerShell)
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Search and download arXiv papers (no API key needed)
Delegate coding and file edits to Anthropic Claude Code CLI
Read/write Windows clipboard text, HTML, images, history (PowerShell)
Running scripts and code on Windows
Delegate coding tasks to OpenAI Codex CLI
Windows Defender: scans, threat history, signatures (PowerShell)
| name | network-diagnostics |
| description | Windows net diag: ping, traceroute, DNS, port scan (PowerShell) |
| category | windows |
| version | 1.0.0 |
| tags | network, diagnostics, ping, dns, traceroute, port, connectivity, powershell, netstat |
| license | Apache-2.0 |
Diagnose Windows network connectivity — test connections, resolve DNS, trace routes, check open ports, and inspect network interfaces — all from PowerShell.
Test-Connection -ComputerName "8.8.8.8" -Count 4
Test-Connection -ComputerName "google.com" -Count 4 | Select-Object Address, Latency, Status
Test-NetConnection -ComputerName "github.com" -Port 443
Test-NetConnection -ComputerName "smtp.gmail.com" -Port 587
Get-NetIPAddress | Where-Object AddressFamily -eq 'IPv4' |
Select-Object InterfaceAlias, IPAddress, PrefixLength |
Where-Object IPAddress -notmatch '^169|^127'
Get-NetRoute -DestinationPrefix "0.0.0.0/0" |
Select-Object InterfaceAlias, NextHop, RouteMetric
Resolve-DnsName "google.com"
Resolve-DnsName "google.com" -Type MX # Mail records
Resolve-DnsName "google.com" -Type TXT # TXT records
Clear-DnsClientCache
Test-NetConnection -ComputerName "8.8.8.8" -TraceRoute
Get-NetTCPConnection -State Established |
Select-Object LocalAddress, LocalPort, RemoteAddress, RemotePort, State |
Sort-Object LocalPort
$port = 3000
$conn = Get-NetTCPConnection -LocalPort $port -ErrorAction SilentlyContinue
if ($conn) {
$proc = Get-Process -Id $conn.OwningProcess -ErrorAction SilentlyContinue
Write-Host "Port $port is used by: $($proc.Name) (PID $($conn.OwningProcess))"
} else {
Write-Host "Port $port is free"
}
netsh wlan show interfaces | Select-String "Signal|SSID|State"
# Requires elevated session
# netsh int ip reset
# netsh winsock reset
Write-Host "To reset network stack, run the above commands in an elevated PowerShell session"
"Can I reach GitHub from this machine?"
→ Test-NetConnection -ComputerName "github.com" -Port 443 — checks both DNS resolution and TCP handshake.
"What's my local IP and gateway?"
→ Get-NetIPAddress for IP + Get-NetRoute -DestinationPrefix "0.0.0.0/0" for gateway.
"Which process is listening on port 8080?"
→ Find the OwningProcess from Get-NetTCPConnection and cross-reference with Get-Process.
Test-NetConnection -TraceRoute can be slow (30+ seconds) for distant hosts — warn the userGet-NetTCPConnection shows socket-level connections; some processes use UDP (Get-NetUDPEndpoint)Clear-DnsClientCache only clears the local resolver cache