PowerShell one liner to test whether a string is a valid IP address:
Function IsIP ($strTest){[Net.IPAddress]::TryParse($strTest,[ref]$null)}
This works for both IPv4 and IPv6.
"Yeah. I wrote a script that will do that."
PowerShell one liner to test whether a string is a valid IP address:
Function IsIP ($strTest){[Net.IPAddress]::TryParse($strTest,[ref]$null)}
This works for both IPv4 and IPv6.