Disable-DPMProductionServer
Disables a DPM protection agent.
Syntax
Default (Default)
Disable-DPMProductionServer
[-ProductionServer] <ProductionServer>
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
The Disable-DPMProductionServer cmdlet disables the System Center - 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.
Parameters
-Confirm
Prompts you for confirmation before running the cmdlet.
Parameter properties
Type: | SwitchParameter |
Default value: | False |
Supports wildcards: | False |
DontShow: | False |
Aliases: | cf |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-ProductionServer
Specifies a computer on which a DPM protection agent is installed. This cmdlet disables the protection agent.
Parameter properties
Type: | ProductionServer |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | 1 |
Mandatory: | True |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-WhatIf
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Parameter properties
Type: | SwitchParameter |
Default value: | False |
Supports wildcards: | False |
DontShow: | False |
Aliases: | wi |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.