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 “” (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

This site uses Akismet to reduce spam. Learn how your comment data is processed.