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
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. ![]()
Have you tried to read the help? ![]()
You should ALWAYS read the help for the cmdlets you’re about to use completely including the examples to learn how to use them. ![]()
Another quick way would be to provide some random value. In the error message you get you will see the list of possible values. ![]()
Thanks for this. This is resolved now :).