Stop-SCDWJob
Stops a data warehouse job.
Parameter Set: Default
Stop-SCDWJob [-JobName] <String> [-ComputerName <String> ] [-Credential <PSCredential> ] [-Confirm] [-WhatIf] [ <CommonParameters>]
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.
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 |
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 |
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 |
Prompts you for confirmation before running the cmdlet.
Required? |
false |
Position? |
named |
Default Value |
false |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
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 |
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).
The input type is the type of the objects that you can pipe to the cmdlet.
None.
You cannot pipe input to this cmdlet.
The output type is the type of the objects that the cmdlet emits.
None.
This cmdlet does not generate any output.
This command stops the Extract_Contoso
job.
PS C:\>Stop-SCDWJob –ComputerName "serverDW72" -JobName "Extract_Contoso"
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
>> }
>> }