Get-DfsrMembership

Get-DfsrMembership

Gets membership settings for members of replication groups.

Sintaxis

Parameter Set: Default
Get-DfsrMembership [[-GroupName] <String[]> ] [[-ComputerName] <String[]> ] [[-DomainName] <String> ] [ <CommonParameters>]

Descripción detallada

The Get-DfsrMembership cmdlet gets membership settings for members of replication groups. Members of a replication group host replicated folders. Use the Add-DfsrMember cmdlet to add a member to a group. Adding a member creates a membership that contains default values. You can use the current cmdlet to view settings for a membership, and use the Set-DfsrMembership to modify membership settings.

Parámetros

-ComputerName<String[]>

Specifies an array of names of replication member computers. The cmdlet modifies membership settings for these member computers. You can use a comma separated list and the wildcard character (*).

Alias

MemberList,MemList

¿Requerido?

false

¿Posición?

2

Valor predeterminado

[local computer]

¿Aceptar canalización?

True (ByPropertyName)

¿Aceptar caracteres comodín?

false

-DomainName<String>

Specifies the NetBIOS name or fully qualified domain name (FQDN) for the Active Directory Domain Service (AD DS) domain that contains the replication group. If you do not specify this parameter, the cmdlet uses the domain of the current 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 applies to all participating replication groups. You can use a comma separated list and the wildcard character (*).

Alias

RG,RgName

¿Requerido?

false

¿Posición?

1

Valor predeterminado

ninguno

¿Aceptar canalización?

True (ByValue, ByPropertyName)

¿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.

  • Microsoft.DistributedFileSystemReplication.DfsReplicationGroup

Salidas

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

  • Microsoft.DistributedFileSystemReplication.DfsrMembership

Ejemplos

Example 1: Get all members of all groups

This command gets all member computers in all replication groups. The console displays DfsrMembership objects for two member computers, named SRV01 and SRV02. These two computers belong to the same group, named RG01.

PS C:\> Get-DfsrMembership -GroupName * -ComputerName *

Temas relacionados

Set-DfsrMembership

Add-DfsrMember