Remove-DfsrMember

Remove-DfsrMember

Removes computers from a replication group.

Sintaxis

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

Descripción detallada

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

Alias

MemberList,MemList

¿Requerido?

true

¿Posición?

2

Valor predeterminado

ninguno

¿Aceptar canalización?

True (ByValue, ByPropertyName)

¿Aceptar caracteres comodín?

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.

Alias

ninguno

¿Requerido?

false

¿Posición?

101

Valor predeterminado

[Current Domain]

¿Aceptar canalización?

True (ByPropertyName)

¿Aceptar caracteres comodín?

false

-Force

Fuerza que el comando se ejecute sin pedir confirmación al usuario.

Alias

ninguno

¿Requerido?

false

¿Posición?

3

Valor predeterminado

ninguno

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

false

-GroupName<String[]>

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

Alias

RG,RgName

¿Requerido?

true

¿Posición?

1

Valor predeterminado

ninguno

¿Aceptar canalización?

True (ByPropertyName)

¿Aceptar caracteres comodín?

true

-Confirm

Solicita confirmación antes de ejecutar el cmdlet.

¿Requerido?

false

¿Posición?

named

Valor predeterminado

falso

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

false

-WhatIf

Muestra lo que sucedería si se ejecutara el cmdlet. El cmdlet no se ejecuta.

¿Requerido?

false

¿Posición?

named

Valor predeterminado

falso

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

false

<CommonParameters>

Este cmdlet admite los siguientes parámetros comunes: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer y -OutVariable. Para obtener más información, consulte about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Entradas

El tipo de entrada es el tipo de los objetos que se pueden canalizar al cmdlet.

  • Microsoft.DistributedFileSystemReplication.DfsReplicationGroup

Salidas

El tipo de resultado es el tipo de objetos que emite el cmdlet.

  • [none]

Ejemplos

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

Temas relacionados

Add-DfsrMember

Get-DfsrMember

Set-DfsrMember