/
Friendly Parameter Prompts with 'HelpMessage'
Friendly Parameter Prompts with 'HelpMessage'
Normally the variable name assigned to the parameter becomes the label which is presented to the user when executing the script.
You may want something a little friendlier, and if so, you are in luck. If you provide HelpMessage information, as shown below, VitalSigns will use that to prompt the user.
[Parameter(Mandatory=$true, HelpMessage="HTML signature file")] [System.IO.FileInfo] $HtmlFilename
For example the following parameters will produce the following user prompt
param(
[Parameter(Mandatory=true)] [string]$Name,
[Parameter(Mandatory=$true, HelpMessage="HTML signature file")] [System.IO.FileInfo] $HtmlFilename ,
[Parameter(Mandatory=$false, HelpMessage = "Plain text signature file")] [System.IO.FileInfo] $TextFilenameFilename
)
, multiple selections available,
Related content
Adding your own PowerScripts to VitalSigns
Adding your own PowerScripts to VitalSigns
More like this
Adding PowerShell Scripts to VitalSigns
Adding PowerShell Scripts to VitalSigns
More like this
Supported Parameter Types
Supported Parameter Types
More like this
Creating Scripts using On-Premises Active Directory
Creating Scripts using On-Premises Active Directory
More like this
PowerScripts Email Alerting
PowerScripts Email Alerting
More like this
Software Requirements
Software Requirements
More like this