Get-SCDWSource
Get-SCDWSource
Gets specific instances of data sources which are registered to the data warehouse.
Syntax
Parameter Set: Default
Get-SCDWSource [[-DataSourceTypeName] <String> ] [-ComputerName <String> ] [-Credential <PSCredential> ] [ <CommonParameters>]
Detailed 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-SCDWSource.
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. 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 |
-DataSourceTypeName<String>
Specifies the type of the data source. You can use the Get-SCDWSourceType cmdlet to retrieve TypeNames.
Aliases |
none |
Required? |
false |
Position? |
1 |
Default Value |
none |
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.
- Microsoft.EnterpriseManagement.DataWarehouse.DataSource
Examples
-------------------------- EXAMPLE 1 --------------------------
This command retrieves all data sources from the serverDW7
computer.
PS C:\> Get-SCDWSource -ComputerName serverDW7
-------------------------- EXAMPLE 2 --------------------------
This command retrieves all data sources from the serverDW7
computer, for which the data source type is ServiceManager
.
PS C:\> Get-SCDWSource -DataSourceTypeName ServiceManager -ComputerName serverDW7
-------------------------- EXAMPLE 3 --------------------------
This command finds any data sources that were registered before a specified date.
PS C:\> Get-SCDWSource -ComputerName serverDW7 | Where-Object {$_.DateRegistered -lt [System.DateTime]"June 12 2012"}
-------------------------- EXAMPLE 4 --------------------------
This command finds any data sources that have been unregistered.
PS C:\> Get-SCDWSource -ComputerName serverDW7 | Where-Object {$_.DateUnRegistered -ne $Null}