Stop-SCDWJob

Stops a data warehouse job.

Syntax

Stop-SCDWJob [-JobName] <String> [-ComputerName <String>] [-Credential <PSCredential>] [-Confirm] [-WhatIf]
 [<CommonParameters>]

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.

Examples

Example 1: Stop a job

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

This command stops the Extract_Contoso job.

Example 2: Stop all jobs that are not already 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
>> }
>> }

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.

Parameters

-ComputerName

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.

Type:String
Aliases:CN
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Credential

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.

Type:PSCredential
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-JobName

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

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

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
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.

Type:SwitchParameter
Aliases:wi
Required:False
Position:Named
Default value: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.