Get-DfsrMembership

Get-DfsrMembership

Gets membership settings for members of replication groups.

Syntax

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

Detailed Description

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.

Parameters

-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 (*).

Aliases

MemberList,MemList

Required?

false

Position?

2

Default Value

[local computer]

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

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.

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. 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 (*).

Aliases

RG,RgName

Required?

false

Position?

1

Default Value

none

Accept Pipeline Input?

True (ByValue, ByPropertyName)

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see    about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

  • Microsoft.DistributedFileSystemReplication.DfsReplicationGroup

Outputs

The output type is the type of the objects that the cmdlet emits.

  • Microsoft.DistributedFileSystemReplication.DfsrMembership

Examples

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 *

Set-DfsrMembership

Add-DfsrMember