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

Set-PSUTrigger

Updates an existing PowerShell Universal Automation trigger.

SYNOPSIS

Updates an existing PowerShell Universal Automation trigger.

SYNTAX

Id

Set-PSUTrigger [-Id] <Int64> [-Name <String>] [-EventType <EventType>] [-Script <String>]
 [-TriggerScript <String>] [-Environment <String>] [-Dashboard <String>] [-ComputerName <String>]
 [-AppToken <String>] [-Credential <PSCredential>] [-UseDefaultCredentials] [-Integrated] [-TrustCertificate]
 [-Cookies] [<CommonParameters>]

Trigger

Set-PSUTrigger [-Trigger] <Trigger> [-Name <String>] [-EventType <EventType>] [-Script <String>]
 [-TriggerScript <String>] [-Environment <String>] [-Dashboard <String>] [-ComputerName <String>]
 [-AppToken <String>] [-Credential <PSCredential>] [-UseDefaultCredentials] [-Integrated] [-TrustCertificate]
 [-Cookies] [<CommonParameters>]

DESCRIPTION

Updates an existing automation trigger by Id or by passing a trigger object through the pipeline.

EXAMPLES

Example 1

Updates trigger 4 to use the ServerStarted event type.

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.

-Dashboard

Specifies the dashboard to target.

-Environment

Specifies the execution environment to use.

-EventType

Specifies the event type that activates the trigger.

-Id

Specifies the numeric Id of the resource.

-Name

Specifies the name of the resource.

-Script

Specifies the script to target.

-Trigger

Specifies the trigger to target.

-TriggerScript

Specifies the script that runs when the trigger fires.

-UseDefaultCredentials

Use default credentials when connecting to the management API

-Integrated

Executes the command internally rather than using the Management API. Only works when running script from within PowerShell Universal.

-Credential

Credentials to login to the PowerShell Universal Management API.

-TrustCertificate

Whether the cmdlet should ignore certificate issues.

-Cookies

Reuses and persists authentication cookies for the current PowerShell session.

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

UniversalAutomation.Trigger

OUTPUTS

System.Object

NOTES

Last updated

Was this helpful?