Windows Server · Risk: High · Documentation Verified
Last verified: 2026-10-26
Microsoft StorageReplica reference: Modifies settings of a replication group. The syntax and selected example below are adapted from the pinned Windows Server 2025 reference. Module availability, target configuration and delegated permissions determine whether it can run in your environment. Documentation and parameter text: Microsoft, CC BY 4.0; formatting adapted by Cmdlet World. No execution testing is claimed.
Use an account with the target resource permissions documented for Set-SRGroup. Modifying administrative cmdlets may require elevation or delegated administration. This catalog does not assert that ordinary users can execute the command.
Supported environments
Windows / StorageReplica · Windows Server 2025 documentation; feature/module prerequisites apply
Parameters
-AddVolumeName (required)
Specifies an array of drive letters or mount point paths of partitions for the replica to add to the group. The volumes must exist. The volumes cannot be mapped drives or UNC paths. This is an ordered list. The order of volumes determines the order of replication. For more information, see the DestinationVolumeName parameter of the New-SRPartnership cmdlet.
-AllowVolumeResize
Indicates that the replication group enables resizing of volumes.
-AsJob
Runs the cmdlet as a background job. Use this parameter to run commands that take a long time to complete.
-CimSession
Runs the cmdlet in a remote session or on a remote computer. Enter a computer name or a session object, such as the output of a New-CimSession or Get-CimSession cmdlet. The default is the current session on the local computer.
-Compression
Indicates that this Storage Replica group should use SMB compression for data transfer.
-ComputerName
Specifies a single replica host computer NetBIOS name or fully qualified domain name (FQDN) of a computer. The default value is the local computer.
-Confirm
Prompts you for confirmation before running the cmdlet.
-Description
Specifies a description for the replication group.
-Encryption
Indicates this partnership should encrypt connections by using SMB AES-128-GCM. Enabling encryption can protect Storage Replica block transfers from man-in-the-middle interception or reading. Enabling encryption decreases performance.
-Force
Forces the command to run without asking for user confirmation.
-LogSizeInBytes
Specifies the aggregate size of log files on each server in the replication group for the volumes that are associated with this replication group. The minimum size 512MB. You can specify a value by using the Windows PowerShell byte conversion capability, such as 4GB or 3200MB. A value that is too small may cause decreased replication performance or increased recovery time after an interruption between computers.
-Name (required)
Specifies the name of the replication group to modify.
-RemoveVolumeName (required)
Specifies an array of drive letters or mount point paths of partitions for the replica to remove from the group. The volumes must exist. The volumes cannot be mapped drives or UNC paths. This is an ordered list. The order of volumes determines the order of replication. For more information, see the DestinationVolumeName parameter of the New-SRPartnership cmdlet. If there is a partnership already configured, before you change this replication group, you must remove the partnership by using the Set-SRPartnership cmdlet. Then you must remove the same volumes from the previously partnered replication group.
-ReplicationMode
Specifies the desired mode of replication for this source and destination pair. The acceptable values for this parameter are: - Synchronous or 1. The synchronous mode requires all writes to commit on the destination server and commit on the source server, which guarantees data integrity between computers. - Asynchronous or 2. The asynchronous mode writes to the source server without waiting for the source server, which allows for replication over high latency, geographic networks. The default value is synchronous. The default asynchronous recovery point alert time is 5 minutes. You can modify it by using the Set-SRPartnership cmdlet. The alert time has no effect on replication behavior, only on reporting.
-ThrottleLimit
Specifies the maximum number of concurrent operations that can be established to run the cmdlet. If this parameter is omitted or a value of 0 is entered, then Windows PowerShell® calculates an optimum throttle limit for the cmdlet based on the number of CIM cmdlets that are running on the computer. The throttle limit applies only to the current cmdlet, not to the session or to the computer.
-WhatIf
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Prerequisites
Windows with the StorageReplica module and the Windows feature or management tools that provide it. Confirm target connectivity and version compatibility using the linked Microsoft reference.
Security considerations
This cmdlet changes system state. Review every target and parameter in the official reference, test outside production, and prepare an appropriate backup or rollback. Do not execute the example automatically.
This command adds the F: volume to the existing replication group named ReplicationGroup01 on the local computer. Source: Microsoft, CC BY 4.0; transcript prompt/output removed. This example was not executed.