Get-SCDWSource

Gets registered instances of data sources.

Syntax

Get-SCDWSource
   [[-DataSourceTypeName] <String>]
   [-ComputerName <String>]
   [-Credential <PSCredential>]
   [<CommonParameters>]

Description

The Get-SCDWSource cmdlet gets specific instances of data sources that are registered to the data warehouse.

For updated information about this cmdlet, see Get-SCDWSourcehttp://go.microsoft.com/fwlink/p/?LinkId=234994.

Examples

Example 1: Get all data sources

PS C:\>Get-SCDWSource -ComputerName "serverDW72"

This command retrieves all data sources from the serverDW72 computer.

Example 2: Get all data sources of a particular type

PS C:\>Get-SCDWSource -DataSourceTypeName "ServiceManager" -ComputerName "serverDW72"

This command retrieves all data sources from the serverDW72 computer, for which the data source type is ServiceManager.

Example 3: Get data sources by date

PS C:\>Get-SCDWSource -ComputerName "serverDW72" | Where-Object {$_.DateRegistered -lt [System.DateTime]"June 12 2012"}

This command finds any data sources that were registered before a specified date.

Example 4: Get unregistered data sources

PS C:\>Get-SCDWSource -ComputerName "serverDW72" | Where-Object {$_.DateUnRegistered -ne $Null}

This command finds any data sources that have been unregistered.

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

-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
Required:False
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:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

None.

You cannot pipe input to this cmdlet.

Outputs

Microsoft.EnterpriseManagement.DataWarehouse.DataSource