New-PSUWorkflowParameter
SYNOPSIS
Creates an in-memory workflow parameter definition.
SYNTAX
New-PSUWorkflowParameter -Name <String> [-DefaultValue <String>] [-Required] [-HelpText <String>]
[-ComputerName <String>] [-AppToken <String>] [-Credential <PSCredential>] [-UseDefaultCredentials]
[-Integrated] [-TrustCertificate] [-Cookies] [<CommonParameters>]DESCRIPTION
Builds and returns a workflow parameter object that can be supplied to New-PSUWorkflow. Use this cmdlet to define workflow input metadata such as default values and help text.
EXAMPLES
Example 1
PS C:\> New-PSUWorkflowParameter -Name RetentionDays -DefaultValue 30 -Required -HelpText "Number of days to keep logs"Creates a required workflow parameter named RetentionDays with a default value and help text.
PARAMETERS
-AppToken
Specifies the app token to use when authenticating to the PowerShell Universal management API.
-ComputerName
Specifies the URL or host name of the target PowerShell Universal instance. Bare host names are normalized to an http://<host>:5000 URL.
-Cookies
Reuses and persists authentication cookies for the current PowerShell session.
-Credential
Specifies the credentials to use for Basic authentication against the PowerShell Universal management API.
-DefaultValue
Specifies the default value for the workflow parameter.
-HelpText
Specifies help text shown for the workflow parameter.
-Integrated
Uses the in-process integrated management client when the cmdlet runs inside PowerShell Universal.
-Name
Specifies the name of the resource.
-Required
Marks the workflow parameter as required.
-TrustCertificate
Allows connections to servers with untrusted TLS certificates.
-UseDefaultCredentials
Uses the current Windows credentials when authenticating to the management API.
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -Verbose, -WarningAction, -WarningVariable, and -ProgressAction. For more information, see about_CommonParameters.
INPUTS
None
OUTPUTS
System.Object
NOTES
RELATED LINKS
Last updated
Was this helpful?