通过PowerShell查询本机IP地址

脚本内容如下: Write-Host "本机IP地址为:"(ipconfig|findstr "IPv4")[1].split(":")[1] -ForegroundColor Green Read-Host "输入任意键退出" 也可以根据你的需求随机应变: Write-Host "本机IP地址为:"(ipconfig|findstr "IPv4"|findstr "xx.xxx").split(
相关文章
相关标签/搜索