Export (0) Print
Expand All

Stop-SCDWJob

Stop-SCDWJob

Stops a data warehouse job.

Syntax

Parameter Set: Default
Stop-SCDWJob [-JobName] <String> [-ComputerName <String> ] [-Credential <PSCredential> ] [-Confirm] [-WhatIf] [ <CommonParameters>]




Detailed Description

The Stop-SCDWJob cmdlet stops a data warehouse job. Job modules that are currently running complete gracefully, and the rest of the job modules that have not run yet queue up.

Parameters

-ComputerName<String>

Specifies the name of the computer on which the System Center Data Access service is running. The user account that is defined in the Credential parameter must have access rights to the specified computer. 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

-Credential<PSCredential>

Specifies the credentials to use when you are connecting to the server on which the System Center Data Access service is running. The user account that is provided must have access to that server.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-JobName<String>

Specifies the job to be stopped. The JobName parameter is mandatory.


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: Stop a job

This command stops the Extract_Contoso job.


PS C:\>Stop-SCDWJob –ComputerName "serverDW72" -JobName "Extract_Contoso"

Example 2: Stop all jobs that are not already stopped

The first command prompts for user credentials and stores them in a variable.

The second command stops all jobs that do not have the status of stopped.


PS C:\> $cred = Get-Credential
PS C:\>Get-SCDWJob -ComputerName "serverDW72" –Credential $cred | ForEach-Object {
>> if ($_.Status -ne "Stopped") {
>> Stop-SCDWJob -ComputerName "IXSMTestDW" -JobName $_.Name
>> }
>> }

Related topics

Community Additions

ADD
Show:
© 2016 Microsoft