Skip To Content
PowerShell Gallery
Toggle navigation
Packages
Publish
Documentation
Sign in
Search PowerShell packages:
fmt
0.8.0
Public/Get-FMTMyPublicIP.ps1
function
Get-FMTMyPublicIP
{
[ipaddress]
$results
=
(
Invoke-WebRequest
-Uri
checkip.dyndns.org
)
.
content
.
split
(
':'
)
[
1
]
.
split
(
'<'
)
[
0
]
.
trim
(
)
return
$results
}