Remove-PSUTrigger
SYNOPSIS
Removes an automation trigger from PowerShell Universal.
SYNTAX
All (Default)
Remove-PSUTrigger [-ComputerName <String>] [-AppToken <String>] [-Credential <PSCredential>]
[-UseDefaultCredentials] [-Integrated] [-TrustCertificate] [-Cookies]
[<CommonParameters>]Trigger
Remove-PSUTrigger [-Trigger] <Trigger> [-ComputerName <String>] [-AppToken <String>]
[-Credential <PSCredential>] [-UseDefaultCredentials] [-Integrated] [-TrustCertificate] [-Cookies]
[<CommonParameters>]Id
Remove-PSUTrigger [-Id] <Int64> [-ComputerName <String>] [-AppToken <String>] [-Credential <PSCredential>]
[-UseDefaultCredentials] [-Integrated] [-TrustCertificate] [-Cookies]
[<CommonParameters>]DESCRIPTION
Deletes an automation trigger from PowerShell Universal by Id or by passing a trigger object through the pipeline.
EXAMPLES
Example 1
Removes the trigger with Id 12 without prompting for confirmation.
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.
-Id
The Id of the trigger to remove.
-Trigger
Specifies the trigger to target.
-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
RELATED LINKS
PERMISSIONS
The access token requires automation.triggers/delete to run this cmdlet remotely.
Last updated
Was this helpful?