Get-DPMDatasource

Gets protected and unprotected data in a computer or protection group.

Syntax

Get-DPMDatasource
   [[-DPMServerName] <String>]
   [-Inactive]
   [<CommonParameters>]
Get-DPMDatasource
   [[-DPMServerName] <String>]
   [-Query] <String>
   [<CommonParameters>]
Get-DPMDatasource
   [[-DPMServerName] <String>]
   [-Path] <String>
   [[-ProductionServerName] <String>]
   [<CommonParameters>]
Get-DPMDatasource
   [[-DPMServerName] <String>]
   [-Async]
   [-ComputerName] <String[]>
   [<CommonParameters>]
Get-DPMDatasource
   [-ProductionServer] <ProductionServer>
   [-Async]
   [-Inquire]
   [-Replica]
   [-Tag <Object>]
   [-IgnoreDPMInformation]
   [-GetVolumesWithoutMountPoints]
   [<CommonParameters>]
Get-DPMDatasource
   [-ProtectionGroup] <ProtectionGroup>
   [<CommonParameters>]

Description

The Get-DPMDatasource cmdlet gets the protected and unprotected data on a computer in System Center - Data Protection Manager (DPM). The output displays only objects at levels that allow you to apply protection. Use the Get-DPMChildDatasource cmdlet to see files in the data source.

This cmdlet can also return the following information about the data on the computer.

The acceptable values for this parameter are:

  • All available data sources on the protected computer.
  • Protected data source on a DPM server.
  • Inactive data sources on a DPM server. An inactive data source is one that is not actively protected on a DPM server.
  • Data sources in a protection group.

Examples

Example 1: Return all data sources on a computer

PS C:\>$DpmPServer = Get-DPMProductionServer -DPMServerName "TestingServer"
PS C:\> Get-DPMDatasource -ProductionServer $DpmPServer[1] -Inquire

The first command returns the servers that have DPM Protection Agent installed, and then stores them in the $DpmPServer variable.

The second command gets the data sources on the second server in $DpmPServer.

Example 2: Return protected data sources in a protection group

PS C:\> $DpmPServer = Get-DPMProtectionGroup -DPMServerName "TestingServer"
PS C:\> Get-DPMDatasource -ProtectionGroup $DpmPServer

The first command returns the protection group from the DPM server named TestingServer. The command stores the group in the $DpmPServer variable.

The second command returns the data sources from the protection group in $DpmPServer.

Example 3: Return inactive data sources on a server

PS C:\> Get-DPMDatasource -DPMServerName "TestingServer" -Inactive

This command retrieves the inactive data sources on the DPM server named TestingServer.

Example 4: Get a data source from a search location

PS C:\> Get-DPMDatasource -DPMServerName "TestingServer" -SearchPath "F:\" -ProductionServer "Test.contoso.com"

This command retrieves a data source from the search path F:\ on the protected server Test.contoso.com.

Parameters

-Async

Indicates that the command runs asynchronously. When you run a command asynchronously, the command prompt returns immediately even if the job takes an extended time to finish.

Type:SwitchParameter
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-ComputerName

Specifies an array of client computers that you add to the protection group.

Type:String[]
Aliases:ComputerNames
Position:2
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-DPMServerName

Specifies the name of the DPM server on which this cmdlet acts.

Type:String
Position:1
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-GetVolumesWithoutMountPoints

Indicates that the cmdlet retrieves volumes without mount points.

Type:SwitchParameter
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-IgnoreDPMInformation

Indicates that the cmdlet does not retrieve protected computer information for data sources.

Type:SwitchParameter
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters: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.

Type:SwitchParameter
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Inquire

Indicates that this cmdlet queries the protected computer and returns the data sources or child data sources on it.

Type:SwitchParameter
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Path

Specifies the path on which to search for the data source.

Type:String
Aliases:SearchPath
Position:2
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-ProductionServer

Specifies a computer on which a DPM protection agent is installed.

Type:ProductionServer
Position:1
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-ProductionServerName

Specifies the name of a computer on which a DPM protection agent is installed.

Type:String
Position:3
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-ProtectionGroup

Specifies the a protection group on which this cmdlet acts. To obtain a ProtectionGroup object, use the Get-DPMProtectionGroup cmdlet.

Type:ProtectionGroup
Position:1
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-Query

Specifies a filter for of the data sources. This cmdlet returns only the ones that have names that contain the specified string.

Type:String
Aliases:SearchQuery
Position:2
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-Replica

Indicates that this cmdlet calculates the space that is required for a replica on the secondary DPM server from the protected computer or the primary DPM server.

Type:SwitchParameter
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Tag

Specifies a custom property that distinguishes the replies to each asynchronous call. You can use parameter if you build a graphical user interface by using cmdlets. Do not use this parameter if you work with the DPM Management Shell.

Type:Object
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Outputs

Datasource