Enable-DPMProductionServer

Enable-DPMProductionServer

Enables a DPM protection agent.

Syntax

Parameter Set: Default
Enable-DPMProductionServer [-ProductionServer] <ProductionServer> [-Confirm] [-WhatIf] [ <CommonParameters>]

Detailed Description

The Enable-DPMProductionServer cmdlet enables a System Center 2012 – Data Protection Manager (DPM) protection agent on a computer. After you enable a protection agent, DPM enables backup jobs that you schedule for the computer to run.

Parameters

-ProductionServer<ProductionServer>

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

Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-Confirm

Prompts you for confirmation before running the cmdlet.

Required?

false

Position?

named

Default Value

false

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Required?

false

Position?

named

Default Value

false

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.

  • ProductionServer

Outputs

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

Notes

  • For more information, type "Get-Help Enable-DPMProductionServer -detailed".

Examples

Example 1: Enable a protection agent

This example enables a DPM protection agent on a computer.

The first command gets the DPM protection agent on the computer named dist01.contoso.com that is protected by the DPM server named DpmWest01. The command stores the result in the $Dpms variable.

The second command disables the protection agent stored in $Dpms.

PS C:\> $Dpms = Get-DPMProductionServer -DPMServerName "DpmWest01" | Where {$_.Name -eq "dist01.contoso.com"}
PS C:\> Enable-DPMProductionServer -ProductionServer $Dpms

Get-DPMProductionServer

Disable-DPMProductionServer

Update-DPMProductionServer

Get-DPMProductionServer