Enable-SCDWJobSchedule

Enables a job schedule so that a job runs according to its schedule.

Syntax

Enable-SCDWJobSchedule
      [-JobName] <String>
      [-ComputerName <String>]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]

Description

The Enable-SCDWJobSchedule cmdlet enables a job schedule so that a job runs according to its specified schedule. If the job schedule was previously disabled, enabling the job schedule retains the job's schedule settings. To disable the job schedule, use the Disable-SCDWJobSchedule cmdlet; to modify the job's schedule, use the Set-SCDWJobSchedule cmdlet.

Examples

Example 1: Enable a job schedule

PS C:\>Enable-SCDWJobSchedule â€"ComputerName "serverDW72" â€"JobName "Transform.Common"

This command enables the job schedule for the Transform.Common job.

Example 2: Display jobs and their job schedule status

PS C:\>Get-SCDWJobSchedule -ComputerName "serverDW72" | Format-Table -Property Name, ScheduleEnabled
-AutoSize

The following command shows the all the jobs and whether their schedule is enabled or disabled.

Parameters

-ComputerName

Specifies the name of the computer on which the System Center Data Access service is running. You can omit this parameter only if the System Center Data Access Service is running on the same computer that has Service Manager installed.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:False
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-JobName

Specifies the Data Warehouse job for which you want to enable the schedule.

Type:String
Position:1
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:False
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

None.

You cannot pipe input to this cmdlet.

Outputs

None.

This cmdlet does not generate any output.