Hi Joannes,
The helpMessage parameter is not directly used by the PowerShell help
system. However you can see the content by using get-command as follows
PS C:\Documents and Settings\kriscv> (get-command get-help).ParameterSets |
more
Parameter Set Name: AllUsersView
Is default parameter set: True
Parameter Name: Name
ParameterType = System.String
Position = 0
IsMandatory = False
IsDynamic = False
HelpMessage =
ValueFromPipeline = False
ValueFromPipelineByPropertyName = True
ValueFromRemainingArguments = False
Aliases = {}
Attributes =
System.Management.Automation.ParameterAttribute
Thanks
Krishna[MSFT]
Windows PowerShell Team
Microsoft Corporation
This posting is provided "AS IS" with no warranties, and confers no rights.
"Joannes Vermorel" <JoannesVermorel@discussions.microsoft.com> wrote in
message news:ED62B431-75E8-43BD-8318-D5513B56B628@microsoft.com...
> It is possible to associate a HelpMessage attribute value to any cmdlet
> parameter; but I can't figure out what is the "canonical" way to retrieve
> this information from the PowerShell command line itself.
>
> Does anyone has an idea on this matter?
>
> Thanks in advance,
> Joannes
> http://www.peoplewords.com