Categories

10405

PowerShell reserved words

For a list of the language  keywords in PowerShell v2 check

Get-Help about_Language_Keywords

You will get a list of the words

Begin
Break
Catch
Continue
Data
Do
Dynamicparam
Else
Elseif
End
Exit
Filter
Finally
For
Foreach
From
Function
If
In
Param
Process
Return
Switch
Throw
Trap
Try
Until
While

And gives a quick description of what each means.

Also

Get-Help about_reserved_words

adds the words that cannot be used as identifiers e.g. variable of function names.  The two lists overlap – the words that are not included in the above list are

Local
Private
Where

Avoid using these words in your variables, functions etc.

Technorati Tags: ,