Enums were introduced to PowerShell in version 5.0 and can be used as a simple way to validate script and parameter input.
You must log in or register to comment.
Nice, I’ve been getting into the .net method calls and this fits right in with the style. I have a number of scripts I can use this in right away so thanks for the article!