Start-ProductionServerSwitchProtection

Start-ProductionServerSwitchProtection

Switches protection of a data source between the primary DPM server and the disaster recovery server.

Syntax

Start-ProductionServerSwitchProtection [-ProtectionType] <ProtectionType> [-UserName] <String> [-Password] <SecureString> [-DomainName] <String> [-ProductionServer] <ProductionServer> [<CommonParameters>]

Detailed Description

The Start-ProductionServerSwitchProtection cmdlet is used to switch protection of a data source between the primary DPM server and the (Secondary DPM Server) disaster recovery server.
This cmdlet is used in two scenarios:
A) The primary DPM server crashes and you want to continue protection of your data sources. In this scenario, the cmdlet is executed on the secondary DPM server to directly protect data sources on the protected server using the Secondary DPM server.
B) The primary server is restored and can resume protecting the data source again. In this scenario, the cmdlet needs to be executed twice. Once on the primary DPM server, to switch protection of the data source and begin to directly protect it. Next on the Secondary DPM server, to restore protection of the primary DPM server.

The valid values for ProtectionType are protectfromps and protectfromdpm.

Parameters

-ProtectionType

Indicates the type of protection.

Attributes

Name Value

Required?

true

Accept wildcard characters?

false

Accept Pipeline Input?

false

Position?

1

-UserName

The user account to use.

Attributes

Name Value

Required?

true

Accept wildcard characters?

false

Accept Pipeline Input?

false

Position?

2

-Password

Password for the user account. Do not pass this value through the command line. Run the command and wait to be prompted for the password.

Attributes

Name Value

Required?

true

Accept wildcard characters?

false

Accept Pipeline Input?

false

Position?

3

-DomainName

The domain to which the user account belongs.

Attributes

Name Value

Required?

true

Accept wildcard characters?

false

Accept Pipeline Input?

false

Position?

4

-ProductionServer

A server that has a DPM agent installed on it.

Attributes

Name Value

Required?

true

Accept wildcard characters?

false

Accept Pipeline Input?

true (ByValue,ByPropertyName)

Position?

0

-CommonParameter

This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, and OutVariable. For more information, see about_CommonParameters.

Input and Return Types

The input type is the type of the objects that you can pipe to the cmdlet. The return type is the type of the objects that the cmdlet emits.

Notes

  • For more information, type "Get-Help Start-ProductionServerSwitchProtection -detailed".
    For technical information, type "Get-Help Start-ProductionServerSwitchProtection -full".

    Additionally, any updated information about the cmdlet will be available at https://go.microsoft.com/fwlink/?LinkId=95130.

Examples