Disable-SCDWSource

Disables all jobs that are affiliated with the specified data source.

Syntax

Disable-SCDWSource [-DataSourceTypeName] <String> [-DataSourceName] <String> [-ComputerName <String>]
 [-Credential <PSCredential>] [-Confirm] [-WhatIf] [<CommonParameters>]

Description

The Disable-SCDWSource cmdlet disables all jobs that are affiliated with the specified data source.

Examples

Example 1: Disable a datasource and associated jobs

PS C:\>Disable-SCDWSource â€"ComputerName "serverDW72" -DataSourceTypeName ServiceManager -DataSourceName "SM12"

This command disables the SM12 data source and all the jobs that use it.

Example 2: Disable a datasource using credentials

PS C:\>$credUser = Get-Credential
PS C:>Disable-SCDWSource â€"ComputerName "serverDW72" -DataSourceTypeName "ServiceManager" -DataSourceName "SM12" â€"Credential $credUser

The first command stores user credentials for the Credential parameter.

The second command disables the data source using the specified credentials.

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 provided user account must have access to that server.

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

Specifies the name of the data source to disable. You can use the Get-SCDWSource cmdlet to retrieve registered data sources.

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

Specifies the name of the type of the data source. You can use the Get-SCDWSourceType cmdlet to retrieve TypeNames.

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.