Get-DfsrMembership

Get-DfsrMembership

Gets membership settings for members of replication groups.

语法

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

详细说明

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.

参数

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

别名

MemberList,MemList

是否为必需?

false

位置?

2

默认值

[local computer]

是否接受管道输入?

True (ByPropertyName)

是否接受通配符?

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.

别名

是否为必需?

false

位置?

101

默认值

[Current Domain]

是否接受管道输入?

True (ByPropertyName)

是否接受通配符?

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

别名

RG,RgName

是否为必需?

false

位置?

1

默认值

是否接受管道输入?

True (ByValue, ByPropertyName)

是否接受通配符?

false

<CommonParameters>

此 cmdlet 支持通用参数:-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer 和 -OutVariable。有关详细信息,请参阅 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

输入

输入类型是指可通过管道传送给 cmdlet 的对象的类型。

  • Microsoft.DistributedFileSystemReplication.DfsReplicationGroup

输出

输出类型是 cmdlet 所发出对象的类型。

  • Microsoft.DistributedFileSystemReplication.DfsrMembership

示例

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