How to find out what values the parameter accept?

I am noob to PS. I am stuck here on finding out what values does the parameter I want to use accepts ?

For example, I want to find out what are the list of values “-ExecutionPolicy” parameter accepts.

Set-ExecutionPolicy -ExecutionPolicy

Yash,
Welcome to the forum. :wave:t4:

Have you tried to read the help? :wink:

You should ALWAYS read the help for the cmdlets you’re about to use completely including the examples to learn how to use them. :point_up_2:t4:

Another quick way would be to provide some random value. In the error message you get you will see the list of possible values. :wink:

Thanks for this. This is resolved now :).