I am trying to customize my PowerShell command, so it Get-Help -fullwill show full information on how to run my script. I have default values that I want to display in this help. I have the following:
<
.PARAMETER SenderEmail
The name of the user who is sending the email message. Although not
officially required, it will be checked to make sure it not blank.
Param (
[String]
[Parameter(
Position=1,
HelpMessage="Sender Email Address")]
$SenderEmail = "bob@fubar.com"
)
However, when I type Get-Help -detail, the following appears.
-SenderEmail <String>
The name of the user who is sending the email message. Although not
officially required, it will be checked to make sure it not blank.
Required? false
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters?
How do I get help to show the default value of this parameter?
source
share