How to validate an IP Address in Powershell

I’ve updated my OHTools module to incorporate a function to validate an IP address.

The function returns TRUE if it’s valid and FALSE if not.

To use it simply run, Validate-OHIPAddress “10.255.1.10” (Or whatever IP you want validated)

See this post here to see how to install the module and you can download the updated OHTools here.

Be the first to comment

Leave a Reply

Your email address will not be published.


*