Set-SCDWSource
Set-SCDWSource
Sets the definition of classes and relationships that can be populated for an instance of a data source.
Syntax
Parameter Set: Default
Set-SCDWSource [-DataSourceTypeName] <String> [-DataSourceName] <String> [-AdditionalData <Object> ] [-ComputerName <String> ] [-Credential <PSCredential> ] [-FullPathToSourceManagementPackBundle <String> ] [-Properties <Hashtable> ] [-Confirm] [-WhatIf] [ <CommonParameters>]
Detailed Description
The Set-SCDWSource cmdlet updates the definition of classes and relationships that can be populated for an instance of a data source.
Parameters
-AdditionalData<Object>
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.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-ComputerName<String>
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 |
-Credential<PSCredential>
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 |
-DataSourceName<String>
Specifies the name of the data source to use. You can use the Get-SCDWSource cmdlet to retrieve names of registered data sources.
Aliases |
none |
Required? |
true |
Position? |
2 |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-DataSourceTypeName<String>
Specifies the type of the data source. You can use the Get-SCDWSourceType cmdlet to retrieve data source type names.
Aliases |
none |
Required? |
true |
Position? |
1 |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-FullPathToSourceManagementPackBundle<String>
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.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-Properties<Hashtable>
Specifies further arguments that will be used when a data source is set up. The hashtable contents vary according to the data source type.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-Confirm
Prompts you for confirmation before running the cmdlet.
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.
Required? |
false |
Position? |
named |
Default Value |
false |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
<CommonParameters>
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).
Inputs
The input type is the type of the objects that you can pipe to the cmdlet.
None.
You cannot pipe input to this cmdlet.
Outputs
The output type is the type of the objects that the cmdlet emits.
None.
This cmdlet does not generate any output.
Examples
Example 1: Set properties for a data source
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.
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"