Get-DfsrMembership
Get-DfsrMembership
Gets membership settings for members of replication groups.
Sintassi
Parameter Set: Default
Get-DfsrMembership [[-GroupName] <String[]> ] [[-ComputerName] <String[]> ] [[-DomainName] <String> ] [ <CommonParameters>]
Descrizione dettagliata
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.
Parametri
-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 |
Obbligatorio? |
false |
Posizione? |
2 |
Valore predefinito |
[local computer] |
Accetta input da pipeline? |
True (ByPropertyName) |
Accetta caratteri jolly? |
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 |
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 applies to all participating replication groups. You can use a comma separated list and the wildcard character (*).
Alias |
RG,RgName |
Obbligatorio? |
false |
Posizione? |
1 |
Valore predefinito |
nessuno |
Accetta input da pipeline? |
True (ByValue, ByPropertyName) |
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.
- Microsoft.DistributedFileSystemReplication.DfsReplicationGroup
Output
Il tipo di output corrisponde al tipo di oggetti generati dal cmdlet.
- Microsoft.DistributedFileSystemReplication.DfsrMembership
Esempi
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 *