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: ,

About these ads
This entry was posted in PowerShell V2. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s