Enable-SCDWSource
Enables all jobs that are associated with the specified data source.
Syntax
Enable-SCDWSource
[-DataSourceTypeName] <String>
[-DataSourceName] <String>
[-ComputerName <String>]
[-Credential <PSCredential>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
The Enable-SCDWSource cmdlet enables all jobs that are associated with the specified data source.
Examples
Example 1: Enable a datasource using stored credentials
PS C:\>$userCred = Get-Credential
PS C:\> Enable-SCDWSource â€"ComputerName "serverDW72" -DataSourceTypeName "ServiceManager" -DataSourceName "SM12" â€"Credential $userCred
This first command stores user credentials in the $userCred
variable for the Credential parameter.
The second command enables the SM12
data source, using the stored 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 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Confirm
Prompts you for confirmation before running the cmdlet.
Type: | SwitchParameter |
Aliases: | cf |
Position: | Named |
Default value: | False |
Required: | False |
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 |
Position: | Named |
Default value: | None |
Required: | False |
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 |
Position: | 2 |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-DataSourceTypeName
Specifies the type of the data source. You can use the Get-SCDWSourceType cmdlet to retrieve TypeNames.
Type: | String |
Position: | 1 |
Default value: | None |
Required: | True |
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 |
Position: | Named |
Default value: | False |
Required: | 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.