Get-DPMDatasource
Get-DPMDatasource
Retrieves the list of protected and unprotected data in a computer or protection group.
構文
Parameter Set: DpmServer
Get-DPMDatasource [[-DPMServerName] <String> ] [-Inactive] [ <CommonParameters>]
Parameter Set: ClientProtectionGroup
Get-DPMDatasource [[-DPMServerName] <String> ] [-ComputerName] <String[]> [-Async] [ <CommonParameters>]
Parameter Set: DataSourceSearch
Get-DPMDatasource [[-DPMServerName] <String> ] [-Query] <String> [ <CommonParameters>]
Parameter Set: ProductionServer
Get-DPMDatasource [-ProductionServer] <ProductionServer> [-Async] [-GetVolumesWithoutMountPoints] [-IgnoreDPMInformation] [-Inquire] [-Replica] [-Tag <Object> ] [ <CommonParameters>]
Parameter Set: ProtectionGroup
Get-DPMDatasource [-ProtectionGroup] <ProtectionGroup> [ <CommonParameters>]
Parameter Set: Search
Get-DPMDatasource [[-DPMServerName] <String> ] [-Path] <String> [[-ProductionServerName] <String> ] [ <CommonParameters>]
詳細説明
The Get-DPMDatasource cmdlet retrieves the list of protected and unprotected data on a computer. The output displays only objects at levels that allow you to apply protection. Use the Get-DPMChildDatasource cmdlet to see files within the data source.
This cmdlet can also return the following information about the data on the computer:
-- All available data sources on the protected computer.
-- Protected data source on a DPM server
-- Inactive data sources on a System Center 2012 – Data Protection Manager (DPM) server. An inactive data source is one that is not actively protected on a DPM server.
-- Data sources in a protection group
パラメーター
-Async
Indicates that the cmdlet runs asynchronously. When you specify this parameter, the cmdlet returns control to you immediately after the operation starts and periodically reports on the progress of the operation. This parameter is useful if the cmdlet takes a long time to complete or if you build a graphical user interface (GUI) by using cmdlets. Do not use this parameter if you are working with the DPM Management Shell.
エイリアス |
none |
必須? |
false |
位置は? |
named |
既定値 |
none |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-ComputerName<String[]>
Specifies the list of client computers that you add to the protection group.
エイリアス |
ComputerNames |
必須? |
true |
位置は? |
2 |
既定値 |
none |
パイプライン入力を許可する |
True (ByValue, ByPropertyName) |
ワイルドカード文字を許可する |
false |
-DPMServerName<String>
Specifies the name of the DPM server.
エイリアス |
none |
必須? |
false |
位置は? |
1 |
既定値 |
none |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-GetVolumesWithoutMountPoints
Indicates that the cmdlet retrieves volumes without mount points.
エイリアス |
none |
必須? |
false |
位置は? |
named |
既定値 |
none |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-IgnoreDPMInformation
Indicates that the cmdlet does not retrieve protected computer information for data sources.
エイリアス |
none |
必須? |
false |
位置は? |
named |
既定値 |
none |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-Inactive
Indicates that the cmdlet returns inactive data sources on a DPM server. An inactive data source is one that was protected on the DPM server at one time but is not protected currently. The replicas and recovery points of an inactive data source remain available.
エイリアス |
none |
必須? |
false |
位置は? |
named |
既定値 |
none |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-Inquire
Indicates that the cmdlet queries the protected computer and returns the list of data sources or child data sources on it.
エイリアス |
none |
必須? |
false |
位置は? |
named |
既定値 |
none |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-Path<String>
Specifies the path on which to search for the data source.
エイリアス |
SearchPath |
必須? |
true |
位置は? |
2 |
既定値 |
none |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-ProductionServer<ProductionServer>
Specifies a server that has DPM Protection Agent installed.
エイリアス |
none |
必須? |
true |
位置は? |
1 |
既定値 |
none |
パイプライン入力を許可する |
True (ByValue, ByPropertyName) |
ワイルドカード文字を許可する |
false |
-ProductionServerName<String>
Specifies the name of the server that you protect.
エイリアス |
none |
必須? |
false |
位置は? |
3 |
既定値 |
none |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-ProtectionGroup<ProtectionGroup>
Specifies the name of a protection group.
エイリアス |
none |
必須? |
true |
位置は? |
1 |
既定値 |
none |
パイプライン入力を許可する |
True (ByValue, ByPropertyName) |
ワイルドカード文字を許可する |
false |
-Query<String>
Filters the list of data sources and returns only the ones whose names contain the specified string.
エイリアス |
SearchQuery |
必須? |
true |
位置は? |
2 |
既定値 |
none |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-Replica
Indicates that the cmdlet calculates the space required for a replica on the secondary DPM server from the protected computer or the primary DPM server.
エイリアス |
none |
必須? |
false |
位置は? |
named |
既定値 |
none |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-Tag<Object>
Specifies a custom property that distinguishes the replies to each asynchronous call.
Do not use this parameter if you work with the DPM Management Shell.
エイリアス |
none |
必須? |
false |
位置は? |
named |
既定値 |
none |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
<CommonParameters>
このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。
入力
入力型は、コマンドレットにパイプできるオブジェクトの型です。
出力
出力型は、コマンドレットによって生成されるオブジェクトの型です。
- Datasource
注
- For more information, type "
Get-Help Get-DPMDatasource -detailed
".
例
Example 1: Return all data sources on a computer
This example returns a list of all data sources on a computer.
The first command returns a list of servers that have DPM Protection Agent installed, and stores the list in the variable named $Ps.
The second command returns the list of data sources on the second server (at position 1) in the $Ps variable.
PS C:\> $Ps = Get-ProductionServer -DPMServerName "TestingServer"PS C:\> Get-DPMDatasource -ProductionServer $Ps[1] -Inquire
Example 2: Return protected data sources in a protection group
This example retrieves the protected data sources in the specified protection group.
The first command returns the protection group from the DPM server named TestingServer and stores the group in the variable named $Pg.
The second command returns the list of data sources from the protection group in $Pg.
PS C:\> $Pg = Get-ProtectionGroup -DPMServerName "TestingServer"PS C:\> Get-DPMDatasource -ProtectionGroup $Pg
Example 3: Return inactive data sources on a server
This command retrieves the inactive data sources on the DPM server named TestingServer.
PS C:\>Get-DPMDatasource -DPMServerName "TestingServer" -Inactive
Example 4: Get a data source from a search location
This command retrieves a data source from the search path F:\ on the protected server Test.contoso.com.
PS C:\>Get-DPMDatasource -DPMServerName "TestingServer" -SearchPath "F:\" -ProductionServer "Test.contoso.com"