Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

Get-DfsrMembership

Windows Server 2012 R2 and Windows 8.1

Updated: October 17, 2013

Applies To: Windows 8.1, Windows PowerShell 4.0, Windows Server 2012 R2

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.

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 *
GroupName                   : RG01
ComputerName : SRV01
FolderName : RF01
GroupDomainName : corp.contoso.com
ComputerDomainName : corp.contoso.com
Identifier : 9931c757-b252-4f04-8347-53575610c423
DistinguishedName : CN=72c0c2bc-8a4e-4984-a23c-2efadc238724,CN=957751c2-15f0-429b-8688-44c22044226d,CN=DFSR-L
ocalSettings,CN=SRV01,OU=Domain Controllers,DC=corp,DC=contoso,DC=com
ContentPath : c:\rf01
PrimaryMember : False
StagingPath : c:\rf01\DfsrPrivate\Staging
StagingPathQuotaInMB : 4096
MinimumStagingFileSize : Size256KB
ConflictAndDeletedPath : c:\rf01\DfsrPrivate\ConflictAndDeleted
ConflictAndDeletedQuotaInMB : 660
ReadOnly : False
RemoveDeletedFiles : False
Enabled : True
DfsnPath :
State : Normal

GroupName : RG01
ComputerName : SRV02
FolderName : RF01
GroupDomainName : corp.contoso.com
ComputerDomainName : corp.contoso.com
Identifier : 6afad5e2-366c-4210-ae0f-e94a03b2b628
DistinguishedName : CN=72c0c2bc-8a4e-4984-a23c-2efadc238724,CN=ce80cd1c-40dd-4e43-89fa-f3ad78988f9a,CN=DFSR-L
ocalSettings,CN=SRV02,OU=Domain Controllers,DC=corp,DC=contoso,DC=com
ContentPath : c:\rf01
PrimaryMember : False
StagingPath : c:\rf01\DfsrPrivate\Staging
StagingPathQuotaInMB : 4096
MinimumStagingFileSize : Size256KB
ConflictAndDeletedPath : c:\rf01\DfsrPrivate\ConflictAndDeleted
ConflictAndDeletedQuotaInMB : 660
ReadOnly : False
RemoveDeletedFiles : False
Enabled : True
DfsnPath :
State : Normal

Related topics

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.