Condividi tramite


Get-DfsReplicationGroup

Get-DfsReplicationGroup

Retrieves a replication group.

Sintassi

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

Descrizione dettagliata

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.

Parametri

-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

nessuno

Obbligatorio?

false

Posizione?

101

Valore predefinito

[Current Domain]

Accetta input da pipeline?

True (ByPropertyName)

Accetta caratteri jolly?

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

Obbligatorio?

false

Posizione?

1

Valore predefinito

nessuno

Accetta input da pipeline?

True (ByValue, ByPropertyName)

Accetta caratteri jolly?

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

nessuno

Obbligatorio?

false

Posizione?

named

Valore predefinito

nessuno

Accetta input da pipeline?

false

Accetta caratteri jolly?

false

<CommonParameters>

Questo cmdlet supporta i parametri comuni: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer e -OutVariable. Per altre informazioni, vedere   about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Input

Il tipo di input è il tipo degli oggetti che è possibile reindirizzare al cmdlet.

  • string

Output

Il tipo di output corrisponde al tipo di oggetti generati dal cmdlet.

  • Microsoft.DistributedFileSystemReplication.DfsReplicationGroup

    An object that contains the properties of a DFS replication group

Esempi

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

Argomenti correlati

New-DfsReplicationGroup

Remove-DfsReplicationGroup

Set-DfsReplicationGroup

Suspend-DfsReplicationGroup

Sync-DfsReplicationGroup