For the complete documentation index, see llms.txt. This page is also available as Markdown.

Set-PSUWorkflow

Updates selected metadata on an existing workflow.

SYNOPSIS

Updates selected metadata on an existing workflow.

SYNTAX

Id

Set-PSUWorkflow [-Id] <Int64> [-Name <String>] [-Description <String>] [-Module <String>]
 [-ReadPermission <String>] [-ComputerName <String>] [-AppToken <String>] [-Credential <PSCredential>]
 [-UseDefaultCredentials] [-Integrated] [-TrustCertificate] [-Cookies]
 [<CommonParameters>]

Workflow

Set-PSUWorkflow [-Workflow] <Workflow> [-Name <String>] [-Description <String>] [-Module <String>]
 [-ReadPermission <String>] [-ComputerName <String>] [-AppToken <String>] [-Credential <PSCredential>]
 [-UseDefaultCredentials] [-Integrated] [-TrustCertificate] [-Cookies]
 [<CommonParameters>]

DESCRIPTION

Loads a workflow by Id or pipeline object and updates the supplied metadata fields, such as name, description, module, and read permission.

EXAMPLES

Example 1

Updates workflow 9 with a new name, description, and read permission.

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://: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.

-Description

Specifies a description for the resource.

-Id

Specifies the numeric Id of the resource.

-Integrated

Uses the in-process integrated management client when the cmdlet runs inside PowerShell Universal.

-Module

Specifies the PowerShell module name to use.

-Name

Specifies the name of the resource.

-ReadPermission

Specifies the permission required to read the workflow.

-TrustCertificate

Allows connections to servers with untrusted TLS certificates.

-UseDefaultCredentials

Uses the current Windows credentials when authenticating to the management API.

-Workflow

Specifies the workflow to target.

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

PowerShellUniversal.Models.Workflows.Workflow

OUTPUTS

System.Object

NOTES

Last updated

Was this helpful?