Disable-SCDWJobSchedule

Disable-SCDWJobSchedule

Disables a Data Warehouse job schedule.

Syntax

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

Detailed Description

The Disable-SCDWJobSchedule cmdlet disables a data warehouse job schedule, which causes the job schedule to stop initiating jobs. Disabling the job schedule retains the job schedule settings. To modify the job schedule settings, 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 the schedule will be disabled.

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 (https://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: Disable a job schedule

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

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

Example 2: List enabled/disabled status of job schedules

This 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

Enable-SCDWJobSchedule

Get-SCDWJobSchedule

Set-SCDWJobSchedule