Skip to content

WIN PowerShell 速查 ​

在 Windows PowerShell 中运行。

查看网络配置 ​

查看已连接网络接口的 IP 地址、默认网关和 DNS 等信息。

powershell
Get-NetIPConfiguration

检查 HTTPS 端口连通性 ​

将 example.com 换成要检查的域名,查看结果中的 TcpTestSucceeded。

powershell
Test-NetConnection example.com -Port 443