Skip to main content

Remove-LXCASchedule

This cmdlet deletes one or more job schedules.

Note
You cannot pipe objects to this cmdlet.

Syntax

Remove-LXCASchedule  [-Connection LXCAConnection]
-ScheduleName String[]
[CommonParameter]

Remove-LXCASchedule [-Connection LXCAConnection]
-Schedules ScheduleObject[]
[CommonParameter]

Parameters

-Connection LXCAConnection
Specifies the connection to the Lenovo XClarity Administrator server. If no connection is specified, the result from the last Connect-LXCA cmdlet is used.
-ScheduleName String[]
Specifies the names of one or more job schedules to be deleted.
-Schedules ScheduleObject[]
Specifies the schedule object of one or more job schedules to be deleted.
CommonParameters
This cmdlet supports the following common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -WarningAction, -WarningVariable, -OutBuffer, -PipelineVariable, -OutVariable. For detailed information about each common parameter, see the Microsoft PowerShell Common Parameters webpage.

Results

This cmdlet does not return an object.

Examples

  • The following example deletes the first job schedule in the list of returned job schedules.
    $cred = Get-Credential
    Connect-LXCA -Host 192.0.2.0 -Credential $cred

    $schedules = Get-LXCASchedule
    Remove-LXCASchedule -Schedules $schedules[0]

    Disconnect-LXCA
  • The following example deletes a specific job schedule.
    $cred = Get-Credential
    Connect-LXCA -Host 192.0.2.0 -Credential $cred

    Remove-LXCASchedule -ScheduleName $name

    Disconnect-LXCA