Condividi tramite


Connect-DPMServer

Connect-DPMServer

Opens a connection to a DPM server.

Syntax

Parameter Set: DPMServerName
Connect-DPMServer [-DPMServerName] <String> [-AsyncOperation <AsyncOperation> ] [ <CommonParameters>]

Parameter Set: DPMServerScope
Connect-DPMServer [-DPMServerScope] <DpmServerScope> [-AsyncOperation <AsyncOperation> ] [ <CommonParameters>]

Detailed Description

The Connect-DPMServer cmdlet opens a connection to a System Center 2012 – Data Protection Manager (DPM) server.

By default, the cmdlet looks for a DPM server in the current domain. To connect to a server in another domain, specify the domain name.

Parameters

-AsyncOperation<AsyncOperation>

Specifies an AsyncOperation object. You can use this parameter to update a GUI that runs in Windows PowerShell, but do not use it in the Windows PowerShell console.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-DPMServerName<String>

Specifies the name of a DPM server for which this cmdlet creates a connection.

Aliases

ComputerName,CN

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-DPMServerScope<DpmServerScope>

Specifies a DPM server scope object. To create a DPM scope object, use the New-DPMServerScope cmdlet.

Aliases

none

Required?

true

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.

Outputs

The output type is the type of the objects that the cmdlet emits.

  • DpmServer

Examples

Example 1: Connect to a server

This command connects to a DPM server named DPMServer07 in the Corporate.Contoso.com domain.

PS C:\> Connect-DPMServer -DPMServerName "DPMServer07.Corporate.Contoso.com"

Disconnect-DPMServer

New-DPMServerScope