【发布时间】:2017-01-14 01:13:03
【问题描述】:
我想在 Windows 7 上使用 PowerShell v5.1 检查端口是否打开。
我可以在装有 PowerShell v5.1 的 Windows 10 笔记本电脑上使用
Test-NetConnection -ComputerName <IP> -Port <Port>
但是,在我的 Windows 7 笔记本电脑上,找不到 Test-NetConnection cmdlet。我有 Test-Connection 可用,但该 cmdlet 不允许我指定端口。
在带有 PowerShell 5.1 的 Windows 7 上是否可以测试网络端口是否打开?如何找回 Test-NetConnection cmdlet?
【问题讨论】:
标签: powershell