PowerShellコマンドをセットアップしようとしています。そのため、Get-Help -full
にスクリプトの実行方法に関する完全な情報が表示されます。このヘルプに表示するデフォルト値があります。PowerShellスクリプトのデフォルト値がGet-Helpに表示されない-full
<#
.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's not blank.
#>
Param (
[String]
[Parameter(
Position=1,
HelpMessage="Sender's Email Address")]
$SenderEmail = "[email protected]"
)
ただし、Get-Help -detailと入力すると、次のように表示されます。
-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's not blank.
Required? false
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters?
このパラメータのデフォルト値を表示するにはどうすればよいですか?
おかげで述べたように次のリビジョンで修正されるのを見えます。私はWindows 7にアップグレードするときにそれを見るだろうと思う。 –