Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

testing ip address with .net in Powershell

$
0
0

I found the below a.net code, which returns true or false based the value of the $ip vary.  I'm having trouble actually using the returned values to perform either a continue or stop processing based on the result.  Can anyone assist?

[ref]$a =$null

[system.net.IPAddress]::tryparse($ip,$a)

Thanks,

Bryan



Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>