Set-SCDWSource

Sets the definition of classes and relationships that can be populated for an instance of a data source.

Syntax

Set-SCDWSource
   [-Properties <Hashtable>]
   [-FullPathToSourceManagementPackBundle <String>]
   [-AdditionalData <Object>]
   [-DataSourceTypeName] <String>
   [-DataSourceName] <String>
   [-ComputerName <String>]
   [-Credential <PSCredential>]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]

Description

The Set-SCDWSource cmdlet updates the definition of classes and relationships that can be populated for an instance of a data source.

Examples

Example 1: Set properties for a data source

PS C:\>$cred = Get-Credential
PS C:\>Set-SCDWSource -DataSourceType "ConfigurationManager.DataSource"  -DataSourceName "MSITData" -Properties @{ Version="D0925349-F1FC-1084-0761-EE60D21B1141"; SyncType="9BFF3B4B-80D0-A263-2DAD-90A67C5FCA39"}  -AdditionalData $cred  -FullPathToSourceManagementPackBundle "C:\NewCMSourceMPS.mpb" -ComputerName "serverDW72"

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

The second command updates the version and the synctype properties for a Configuration Manager data source.

Required Parameters

-DataSourceName

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

Type:String
Position:2
Default value:None
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 data source type names.

Type:String
Position:1
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Optional Parameters

-AdditionalData

Specifies any additional data that a particular source has to send during registration. Specifically, this is used during a cmshort source registration, to provide credentials in the form of a credential object that the cmshort source uses to contact the cmshort server.

Type:Object
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-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
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
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
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-FullPathToSourceManagementPackBundle

Specifies the path to the management pack bundle that contains the management packs with the definitions for the new source types. This makes it possible for you to define the type system for the new source in the same manner that type systems are defined in management packs by declaring classes.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Properties

Specifies further arguments that will be used when a data source is set up. The hashtable contents vary according to the data source type.

Type:Hashtable
Position:Named
Default value:None
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
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.