New-SCDWSourceType
New-SCDWSourceType
Creates a data source type that can be registered to the data warehouse.
Syntax
Parameter Set: Default
New-SCDWSourceType [-SourceConfigFile] <String> [-ComputerName <String> ] [-Credential <PSCredential> ] [-Confirm] [-WhatIf] [ <CommonParameters>]
Detailed Description
The New-SCDWSourceType cmdlet creates a new data source type that can be registered to the data warehouse. Each data source type is defined by the classes and the relationships in the management pack bundle that is imported when the data source type is defined.
Parameters
-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.
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 |
-SourceConfigFile<String>
Specifies the path to the management pack bundle (.mpb) file that contains the management packs and other resources that define the data source.
Each management pack in the management pack bundle must contain a class that derives from the Microsoft.SystemCenter.DataWarehouse.DataSource class, and an enumeration that derives from DW.DataSourceType. The base class and the enumeration must exist in the Microsoft.SystemCenter.DataWarehouse.Base.mp management pack.
Aliases |
none |
Required? |
true |
Position? |
1 |
Default Value |
none |
Accept Pipeline Input? |
true (ByPropertyName) |
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: Create a data source type from a management pack bundle
This command creates a new data source type from a specified management pack bundle.
PS C:\> New-SCDWSourceType -ComputerName "serverDW72" -SourceConfigFile "C:\Program Files\Microsoft System Center\Management Packs\CustomHumanRelationsDataSource.mpb"