Share via


Set-DPMPerformanceOptimization

Enables or disables on-the-wire compression for a DPM protection group.

Syntax

EnableCompression

Set-DPMPerformanceOptimization
    [-ProtectionGroup] <ProtectionGroup>
    [-EnableCompression]
    [-PassThru]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

DisableCompression

Set-DPMPerformanceOptimization
    [-ProtectionGroup] <ProtectionGroup>
    [-DisableCompression]
    [-PassThru]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

Description

The Set-DPMPerformanceOptimization cmdlet enables or disables on-the-wire compression of data for a System Center - Data Protection Manager (DPM) protection group. First, get a protection group by using the Get-DPMProtectionGroup cmdlet. Then, use the Get-DPMModifiableProtectionGroup cmdlet to let you change that protection group.

On-the-wire compression decreases the amount of data transferred during replica creation, synchronization, and consistency check operations. On-the-wire compression increases CPU usage on both the DPM server and on protected computers.

Examples

Example 1: Enable compression for a protection group

PS C:\>$PGroup = Get-DPMProtectionGroup -DPMServerName "DPMServer07"
PS C:\> $MPGroup = Get-DPMModifiableProtectionGroup -ProtectionGroup $PGroup
PS C:\> Set-DPMPerformanceOptimization -ProtectionGroup $MPGroup -EnableCompression

The first command uses the Get-DPMProtectionGroup cmdlet to get the protection group for the DPM server named DPMServer07, and stores that object in the $PGroup variable.

The second command uses the Get-DPMModifiableProtectionGroup cmdlet to get the protection group in $PGroup in an editable format, and then stores that object in the $MPGroup variable.

The third command enables compression for the protection group in $MPGroup.

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

-DisableCompression

Indicates that the cmdlet disables on-the-wire compression of data.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

DisableCompression
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-EnableCompression

Indicates that the cmdlet enables on-the-wire compression of data.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

EnableCompression
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-PassThru

Returns an object representing the item with which you are working. By default, this cmdlet does not generate any output.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-ProtectionGroup

Specifies a protection group that this cmdlet modifies. To obtain a ProtectionGroup object, use the Get-DPMProtectionGroup cmdlet.

Parameter properties

Type:ProtectionGroup
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:1
Mandatory:True
Value from pipeline:True
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.

Outputs

ProtectionGroup