# How to find out what values the parameter accept?

**URL:** <https://forums.powershell.org/t/how-to-find-out-what-values-the-parameter-accept/20337>\
**Category:** PowerShell Help\
**Created:** [September 4, 2022, 2:57am UTC](https://forums.powershell.org/t/how-to-find-out-what-values-the-parameter-accept/20337 "2022-09-04T02:57:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![yashcrest](https://avatars.discourse-cdn.com/v4/letter/y/f475e1/32.png) [@yashcrest](https://forums.powershell.org/u/yashcrest)\
**Post date:** [September 4, 2022, 2:57am UTC](https://forums.powershell.org/t/how-to-find-out-what-values-the-parameter-accept/20337/1 "2022-09-04T02:57:18Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Olaf](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/olaf/32/992_2.png) [@Olaf](https://forums.powershell.org/u/Olaf)\
**Post date:** [September 4, 2022, 7:21am UTC](https://forums.powershell.org/t/how-to-find-out-what-values-the-parameter-accept/20337/2 "2022-09-04T07:21:18Z")

</div>

Yash,  
Welcome to the forum. 👋🏽

> [@yashcrest](#):
>
> I want to find out what are the list of values “-ExecutionPolicy” parameter accepts

Have you tried to read the help? 😉

> **[Set-ExecutionPolicy (Microsoft.PowerShell.Security) - PowerShell](https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.security/set-executionpolicy?view=powershell-7.2)**
>
> The Set-ExecutionPolicy cmdlet changes PowerShell execution policies for Windows computers. For more information, see about\_Execution\_Policies. Beginning in PowerShell 6.0 for non-Windows computers, the default execution policy is Unrestricted and...

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. 😉

---

<div class="post-metadata">

**Author:** ![yashcrest](https://avatars.discourse-cdn.com/v4/letter/y/f475e1/32.png) [@yashcrest](https://forums.powershell.org/u/yashcrest)\
**Post date:** [September 4, 2022, 8:48am UTC](https://forums.powershell.org/t/how-to-find-out-what-values-the-parameter-accept/20337/3 "2022-09-04T08:48:44Z")

</div>

Thanks for this. This is resolved now :).

---

<div class="post-metadata">

**Author:** ![dotnVo](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@dotnVo](https://forums.powershell.org/u/dotnVo)\
**Post date:** [May 16, 2024, 8:16pm UTC](https://forums.powershell.org/t/how-to-find-out-what-values-the-parameter-accept/20337/4 "2024-05-16T20:16:39Z")

</div>


