复制代码
- # requires -Version 3.0
- $url = 'http://ip.qq.com'
- Invoke-WebRequest -Uri $url -UseBasicParsing | %{
- if ($_ -match "ip_contend") {
- $ExtIP = $_.InputFields.value | select -first 1
- }
- }
- $ExtIP
欢迎光临 批处理之家 (http://bbs.bathome.net/) | Powered by Discuz! 7.2 |