# Parameter Options

**URL:** <https://forums.powershell.org/t/parameter-options/525>\
**Category:** PowerShell Help\
**Created:** [December 31, 2011, 6:30pm UTC](https://forums.powershell.org/t/parameter-options/525 "2011-12-31T18:30:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![archives](https://avatars.discourse-cdn.com/v4/letter/a/bb73d2/32.png) [@archives](https://forums.powershell.org/u/archives)\
**Post date:** [December 31, 2011, 6:30pm UTC](https://forums.powershell.org/t/parameter-options/525/1 "2011-12-31T18:30:00Z")

</div>

by graybin at 2013-01-24 09:40:04

> I know that I can use Google to find possible options for some parameters, but how can I find it in powershell.   
> For example. I know that I can change do  
> `write-host "blahblahblah" -foregroundcolor "Red"`  
>   
> Using Powershell itself, how can I find out the other options besides "Red", how can I find out that "Red" is the same as 12, etc.

by ArtB0514 at 2013-01-24 10:21:25

> `[system.consolecolor].getenumValues() | foreach {"{0} :: {1}" -f $.ToString(),$.Value__}Black :: 0DarkBlue :: 1DarkGreen :: 2DarkCyan :: 3DarkRed :: 4DarkMagenta :: 5DarkYellow :: 6Gray :: 7DarkGray :: 8Blue :: 9Green :: 10Cyan :: 11Red :: 12Magenta :: 13Yellow :: 14White :: 15`

by graybin at 2013-01-24 10:30:38

> That didn’t work for me. Is it a version issue or something else? I am running version 2 on XP

by ArtB0514 at 2013-01-24 10:41:44

> Sorry about that, PowerShell 3 has become my default. Found a V2 PowerShell to try it out on. Do it this way:  
> `[enum]]) | foreach {"{0} :: {1}" -f $.ToString(),$.Value__}Black :: 0DarkBlue :: 1DarkGreen :: 2DarkCyan :: 3DarkRed :: 4DarkMagenta :: 5DarkYellow :: 6Gray :: 7DarkGray :: 8Blue :: 9Green :: 10Cyan :: 11Red :: 12Magenta :: 13Yellow :: 14White :: 15`

by nohandle at 2013-01-25 04:03:35

> You may also refer here for the description why this works: [viewtopic.php?p=4477#p4477](https://powershell.org/discuss/viewtopic.php?p=4477#p4477)

---

<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:58pm UTC](https://forums.powershell.org/t/parameter-options/525/2 "2024-05-16T20:58:18Z")

</div>

Closed on May 16, 2024, 8:58pm UTC


