Get-DfsReplicationGroup

Get-DfsReplicationGroup

Retrieves a replication group.

Sintaxis

Parameter Set: Default
Get-DfsReplicationGroup [[-GroupName] <String[]> ] [[-DomainName] <String> ] [-IncludeSysvol] [ <CommonParameters>]

Descripción detallada

The Get-DfsReplicationGroup cmdlet retrieves existing replication groups.

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. The DFS Replication Get-* cmdlets are useful for pipeline operations or inventory.

Parámetros

-DomainName<String>

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

Alias

ninguno

¿Requerido?

false

¿Posición?

101

Valor predeterminado

[Current Domain]

¿Aceptar canalización?

True (ByPropertyName)

¿Aceptar caracteres comodín?

false

-GroupName<String[]>

Specifies an array of names of replication groups. If you do not specify this parameter, the cmdlet queries for all participating replications groups. You can specify multiple groups, separated by commas, as well as wildcard characters (*).

Alias

RG,RgName

¿Requerido?

false

¿Posición?

1

Valor predeterminado

ninguno

¿Aceptar canalización?

True (ByValue, ByPropertyName)

¿Aceptar caracteres comodín?

true

-IncludeSysvol

Indicates that the cmdlet retrieves the special Domain System Volume replication group that domain controllers create. This replication group contains the SYSVOL Share replicated folder. DFS Replication does not allow direct modification of SYSVOL due to internal blocks, and this parameter is provided for convenience only so that administrators can inventory if a domain contains DFSR SYSVOL.

Alias

ninguno

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

false

<CommonParameters>

Este cmdlet admite los siguientes parámetros comunes: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer y -OutVariable. Para obtener más información, consulte about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Entradas

El tipo de entrada es el tipo de los objetos que se pueden canalizar al cmdlet.

  • string

Salidas

El tipo de resultado es el tipo de objetos que emite el cmdlet.

  • Microsoft.DistributedFileSystemReplication.DfsReplicationGroup

    An object that contains the properties of a DFS replication group

Ejemplos

Example 1: Retrieve replication groups

This command retrieves the RG02 replication group for inventory or use in other pipelines.

PS C:\> Get-DfsReplicationGroup -GroupName RG02

Example 2: Retrieve replication groups and SYSVOL shared volume

This command retrieves all replication groups for inventory, including the special Domain System Volume resource group created by domain controllers. By default, this resource group is not returned as its management is controlled by Active Directory.

PS C:\> Get-DfsReplicationGroup -GroupName * -IncludeSysvol

Temas relacionados

New-DfsReplicationGroup

Remove-DfsReplicationGroup

Set-DfsReplicationGroup

Suspend-DfsReplicationGroup

Sync-DfsReplicationGroup