Skip To Content
PowerShell Gallery
Toggle navigation
Packages
Publish
Documentation
Sign in
Search PowerShell packages:
WSTools
2024.12.1
Functions/Convert-IPtoINT64.ps1
function
Convert-IPtoINT64
(
)
{
param
(
$IP
)
$octets
=
$IP
.
split
(
"."
)
return
[int64]
(
[int64]
$octets
[
0
]
*
16777216
+
[int64]
$octets
[
1
]
*
65536
+
[int64]
$octets
[
2
]
*
256
+
[int64]
$octets
[
3
]
)
}