# Code Snippet from aperturescience.su
function Get-ExternalIP
{
Param
(
[String]$ipcheckurl = "http://icanhazip.com/"
#Alternative URLS
# http://automation.whatismyip.com/n09230945.asp
# http://whatismyip.akamai.com/
# http://b10m.swal.org/ip
)
return (get-webpage -url $ipcheckurl -useragent "Mozilla/5.0 (Windows NT 6.2; WOW64)")
}
# Code Snippet from aperturescience.su