PowerShell Tip#1: Get Enum Values

To get all possible enum values you can follow this blog post from PowerShellMagazine.

To make things even easier, you can call GetEnumValues() directly on the returned object from GetType().

Get Enum Values in Action

Leave a Reply