Disable-DPMProductionServer

Disables a DPM protection agent.

Syntax

Disable-DPMProductionServer
       [-ProductionServer] <ProductionServer>
       [-WhatIf]
       [-Confirm]
       [<CommonParameters>]

Description

The Disable-DPMProductionServer cmdlet disables the System Center 2016 - Data Protection Manager (DPM) protection agent on a computer. After you disable a DPM protection agent, backup jobs for the computer do not run.

Examples

Example 1: Disable a protection agent

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

The first command gets the DPM protection agent on the computer named dist01.contoso.com for the DPM server named DpmWest01. The command stores the result in the $DpmServer variable.

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

Required Parameters

-ProductionServer

Specifies a computer on which a DPM protection agent is installed. This cmdlet disables the protection agent.

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

Optional Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
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.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

ProductionServer