Enums were introduced to PowerShell in version 5.0 and can be used as a simple way to validate script and parameter input.

  • discusseded
    link
    fedilink
    arrow-up
    2
    ·
    1 year ago

    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!