Hi Everyone,
I was wondering, can i include a command instead of an array of strings? so that i can generate the the array automatically.
I was thinking something like the example below to generate the Exchange site list.
[ValidateSet((Get-ExchangeServer).site.name | Group-Object | select name))]