New-SCDWSourceType

Creates a data source type that can be registered to the data warehouse.

Syntax

New-SCDWSourceType [-SourceConfigFile] <String> [-ComputerName <String>] [-Credential <PSCredential>]
 [-Confirm] [-WhatIf] [<CommonParameters>]

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.

Examples

Example 1: Create a data source type from a management pack bundle

PS C:\>New-SCDWSourceType -ComputerName "serverDW72" -SourceConfigFile "C:\Program Files\Microsoft System Center\Management Packs\CustomHumanRelationsDataSource.mpb"

This command creates a new data source type from a specified management pack bundle.

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.

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

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

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.

Type:String
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.

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.