3 ms·
Ah, that's exactly the kind of situation where you'd want a param with a default. As an example: PS C:\> New-Parameter SMTPSvr -TopHeader -BottomHeader -Parame
by stephengillie 10y ago
Ah, that's exactly the kind of situation where you'd want a param with a default. As an example:
PS C:\> New-Parameter SMTPSvr -TopHeader -BottomHeader -ParameterType string -DefaultValue "mail.example.com"
Param(
[string]$SMTPSvr = "mail.example.com"
) #end Param