Enable-SCDWJobSchedule

Enable-SCDWJobSchedule

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

Syntax

Parameter Set: Default
Enable-SCDWJobSchedule [-JobName] <String> [-ComputerName <String> ] [-Confirm] [-WhatIf] [ <CommonParameters>]




Detailed 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.

Parameters

-ComputerName<String>

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.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-JobName<String>

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


Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-Confirm

Prompts you for confirmation before running the cmdlet.


Required?

false

Position?

named

Default Value

false

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-WhatIf

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


Required?

false

Position?

named

Default Value

false

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see    about_CommonParameters (http://go.microsoft.com/fwlink/p/?LinkID=113216).

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

  • None.

    You cannot pipe input to this cmdlet.


Outputs

The output type is the type of the objects that the cmdlet emits.

  • None.

    This cmdlet does not generate any output.


Examples

Example 1: Enable a job schedule

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


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

Example 2: Display jobs and their job schedule status

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


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

Related topics

Community Additions

ADD
Show: