Cmdlets

Choose a cmdlet from the list on the left or search for a specific cmdlet. Choose a cmdlet from the list or search for a specific cmdlet.
About Help  Providers
 

New-DfsReplicationGroup

New-DfsReplicationGroup

dfsrpowershell.dll

Synopsis

Creates a replication group.

Syntax

New-DfsReplicationGroup [-GroupName] [-DomainName] [-Description] [-Confirm] [-WhatIf] [<CommonParameters>]

Detailed Description

The New-DfsReplicationGroup cmdlet creates a replication group. A replication group is a set of servers, or members, that participate in the replication of one or more folders. A replicated folder is kept synchronized among the members of a replication group. This cmdlet cannot modify resource group bandwidth or schedules.

Parameters

-Description <String>

Specifies a description for the replication group.

Aliases

None

Required?

false

Position

2

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-DomainName <String>

Specifies a NetBIOS or fully qualified domain name (FQDN) for the Active Directory domain that contains a replication group. If you do not specify this parameter, the cmdlet uses the current domain.

Aliases

None

Required?

false

Position

101

Default value

[Current Domain]

Accept pipeline input?

True (ByPropertyName)

Accept wildcard characters?

false

-GroupName <String[]>

Specifies an array of names of replication groups.

Aliases

RG,RgName

Required?

true

Position

1

Default value

None

Accept pipeline input?

True (ByValue, ByPropertyName)

Accept wildcard characters?

false

-Confirm <SwitchParameter>

Prompts you for confirmation before running the cmdlet.

Aliases

None

Required?

false

Position

named

Default value

false

Accept pipeline input?

false

Accept wildcard characters?

false

-WhatIf <SwitchParameter>

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

Aliases

None

Required?

false

Position

named

Default value

false

Accept pipeline input?

false

Accept wildcard characters?

false

Input Type

Microsoft.DistributedFileSystemReplication.DfsReplicationGroup

Return Type

Microsoft.DistributedFileSystemReplication.DfsReplicationGroup

Notes

None

Examples

Example 1: Create a replication group

This command creates a replication group named RG01.

PS C:\> New-DfsReplicationGroup -GroupName "RG01"
GroupName              : RG01
DomainName             : corp.contoso.com
Identifier             : 81251362-e30f-4c1e-b6b0-23906c1ebdd7
Description            : 
State                  : Normal

Example 2: Create a replication topology

This example creates a replication topology with an upstream server and two downstream servers.

The first command uses the New-DfsReplicationGroup cmdlet to create a replication group with the name Branch Office 1. The command pipes the output to the New-DfsReplicatedFolder cmdlet to create a replicated folder with the name Data Distribution 1. The command pipes the output to the Add-DfsrMember cmdlet to add the member servers named SRV01, SRV02, and SRV03. The command formats the output of the pipeline as a table.

The second command uses the Add-DfsrConnection cmdlet to add bidirectional connections between servers SRV01 and SRV02.

The third command uses the Add-DfsrConnection cmdlet to add bidirectional connections between servers SRV01 and SRV03.

The fourth command uses the Set-DfsrMembership cmdlet to set SRV01 as the primary member.

The fifth command uses the Set-DfsrMembership cmdlet to set membership for servers SRV02 and SRV03.

PS C:\> New-DfsReplicationGroup -GroupName "Branch Office 1" | New-DfsReplicatedFolder -FolderName "Data Distribution 1" | Add-DfsrMember -ComputerName SRV01, SRV02, SRV03 | Format-Table dnsname,groupname -auto -wrap
DnsName               GroupName
-------               ---------
SRV01.corp.contoso.com Branch Office 1
SRV02.corp.contoso.com Branch Office 1
SRV03.corp.contoso.com Branch Office 1

Online Version
Get-DfsReplicationGroup
Remove-DfsReplicationGroup
Set-DfsReplicationGroup
Suspend-DfsReplicationGroup
Sync-DfsReplicationGroup