Validate an INI file through PowerShell

Most scripters would prefer to use XML or hashtables as input.
But… some Admins don’t like the XML formatting, but love the formatting of INI files.
So, here is a function to validate an INI file. It checks the content of each line against REGEX matches:

Leave a Reply

Your email address will not be published. Required fields are marked *