Skip To Content
PowerShell Gallery
Toggle navigation
Packages
Publish
Documentation
Sign in
Search PowerShell packages:
Get-Ip
1.0.2
Get-Ip.psm1
function
Get-Ip
{
[
CmdletBinding
(
)
]
param
(
)
# Process input from the pipeline
process
{
Invoke-RestMethod
-Uri
"https://api.ipify.org?format=json"
-Method
Get
}
}
Export-ModuleMember
-Function
Get-Ip