Remove-PSUSchedule
SYNOPSIS
Removes a schedule for a script.
SYNTAX
All (Default)
Remove-PSUSchedule [-ComputerName <String>] [-AppToken <String>] [-Credential <PSCredential>]
[-UseDefaultCredentials] [-Integrated] [-TrustCertificate] [-Cookies]
[<CommonParameters>]Schedule
Remove-PSUSchedule -Schedule <Schedule> [-ComputerName <String>] [-AppToken <String>]
[-Credential <PSCredential>] [-UseDefaultCredentials] [-Integrated] [-TrustCertificate] [-Cookies]
[<CommonParameters>]Id
Remove-PSUSchedule [-Id] <Int64> [-ComputerName <String>] [-AppToken <String>] [-Credential <PSCredential>]
[-UseDefaultCredentials] [-Integrated] [-TrustCertificate] [-Cookies]
[<CommonParameters>]Name
DESCRIPTION
Removes a schedule for a script.
EXAMPLES
Example 1
Removes schedule 12.
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.
-Integrated
Uses the in-process integrated management client when the cmdlet runs inside PowerShell Universal.
-Id
The Id of the schedule to remove.
-Schedule
Specifies the schedule to target.
-UseDefaultCredentials
Uses the current Windows credentials when authenticating to the management API.
-Name
The name of the schedule to remove.
-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.Schedule
OUTPUTS
System.Object
NOTES
RELATED LINKS
PERMISSIONS
The access token requires automation.schedules/delete to run this cmdlet remotely.
Last updated
Was this helpful?