Share via


Remove-DfsrMember

Remove-DfsrMember

Removes computers from a replication group.

Sintaxe

Parameter Set: Default
Remove-DfsrMember [-GroupName] <String[]> [-ComputerName] <String[]> [[-Force]] [[-DomainName] <String> ] [-Confirm] [-WhatIf] [ <CommonParameters>]

Descrição detalhada

The Remove-DfsrMember cmdlet removes member computers from a replication group. Members of a replication group host replicated folders. If you remove a member from its replication group, Distributed File System (DFS) Replication stops replication on that member. This cmdlet does not delete the contents of replicated folders or their private data. Use the Add-DfsrMember to add member computers to a group.

Parâmetros

-ComputerName<String[]>

Specifies an array of names of member computers. The cmdlet removes these members from the replication group. You can use a comma separated list and the wildcard character (*).

Aliases

MemberList,MemList

Necessário?

true

Posição?

2

Valor padrão

nenhuma

Aceitar entrada do pipeline?

True (ByValue, ByPropertyName)

Aceitar caracteres curinga?

true

-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

nenhuma

Necessário?

false

Posição?

101

Valor padrão

[Current Domain]

Aceitar entrada do pipeline?

True (ByPropertyName)

Aceitar caracteres curinga?

false

-Force

Força o comando a ser executado sem solicitar a confirmação do usuário.

Aliases

nenhuma

Necessário?

false

Posição?

3

Valor padrão

nenhuma

Aceitar entrada do pipeline?

false

Aceitar caracteres curinga?

false

-GroupName<String[]>

Specifies an array of names of replication groups. You can use a comma separated list and the wildcard character (*).

Aliases

RG,RgName

Necessário?

true

Posição?

1

Valor padrão

nenhuma

Aceitar entrada do pipeline?

True (ByPropertyName)

Aceitar caracteres curinga?

true

-Confirm

Solicita que você confirme antes de executar o cmdlet.

Necessário?

false

Posição?

named

Valor padrão

false

Aceitar entrada do pipeline?

false

Aceitar caracteres curinga?

false

-WhatIf

Mostra o que aconteceria se o cmdlet fosse executado. O cmdlet não é executado.

Necessário?

false

Posição?

named

Valor padrão

false

Aceitar entrada do pipeline?

false

Aceitar caracteres curinga?

false

<CommonParameters>

Esse cmdlet dá suporte a parâmetros comuns: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer e -OutVariable. Para obter mais informações, consulte about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Entradas

O tipo de entrada é o tipo dos objetos que você pode canalizar para o cmdlet.

  • Microsoft.DistributedFileSystemReplication.DfsReplicationGroup

Saídas

O tipo de saída é o tipo de objeto emitido pelo cmdlet.

  • [none]

Exemplos

Example 1: Remove a member from a group

This command removes the member computer named SRV02 from the River Branch Office replication group. Because this example does not include the Force parameter, the command prompts the user for confirmation.

PS C:\> Remove-DfsrMember -GroupName "River Branch Office" -ComputerName "SRV02"

Example 2: Remove all members from a group

This command removes all the member computers from the replication group named RG07. Because the command includes the Force parameter, it removes the members without prompting the user for confirmation.

PS C:\> Remove-DfsrMember -GroupName "RG07" -ComputerName * -Force

Tópicos relacionados

Add-DfsrMember

Get-DfsrMember

Set-DfsrMember