I've created an advanced function which has a few parameters that required the ValidateSet to be dynamically populated.
Kind of. What you're looking for is a Dynamic Parameter. Check out https://blogs.technet.microsoft.com/pstips/2014/06/09/dynamic-validateset-in-a-dynamic-parameter/. Alternately, you could write a ValidateScript instead, but that's not going to provide tab completion for permitted values.
You must be logged in to reply to this topic.