Powershell中使用Test-NetConnection测试端口 文档 https://learn.microsoft.com/zh-cn/powershell/module/nettcpip/Test-NetConnection?view=winserver2012r2-ps Test-NetConnection -ComputerName www.baidu.com -port 22 -InformationLevel Detailed 返回首页 Post Views: 432