Edit

Share via


Set-DfsrMember

Modifies member computer information in a replication group.

Syntax

Default (Default)

Set-DfsrMember
    [-GroupName] <String[]>
    [-ComputerName] <String[]>
    [[-Description] <String>]
    [[-DomainName] <String>]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

Description

The Set-DfsrMember cmdlet modifies member computer information in a replication group. Members of a replication group host replicated folders. You can modify the description of a member.

Examples

Example 1: Update the description for a member

PS C:\> Set-DfsrMember -GroupName "RG07" -Member "SRV01" -Description "Waukegan Branch Office Server"
GroupName                    : RG07
ComputerName                 : SRV01
DomainName                   : corp.contoso.com
Identifier                   : 5ddc94cd-1602-477d-9e50-a66af5892b67
Description                  : Waukegan Branch Office Server
DnsName                      : SRV01.corp.contoso.com
Site                         : Default-First-Site-Name
NumberOfConnections          : 2
NumberOfInboundConnections   : 1
NumberOfOutboundConnections  : 1
NumberOfInterSiteConnections : -2
NumberOfIntraSiteConnections : 2
IsClusterNode                : True
State                        : Normal

This command updates the description for the computer named SRV01 in the group named RG07. The console displays the DfsrMember object, which includes the updated description.

Parameters

-ComputerName

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

Parameter properties

Type:

String[]

Default value:None
Supports wildcards:True
DontShow:False
Aliases:MemberList, MemList

Parameter sets

(All)
Position:1
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:True
Value from remaining arguments:False

-Confirm

Prompts you for confirmation before running the cmdlet.

Parameter properties

Type:SwitchParameter
Default value:False
Supports wildcards:False
DontShow:False
Aliases:cf

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Description

Specifies a description for a member computer.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:2
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-DomainName

Specifies the NetBIOS name or fully qualified domain name (FQDN) for the Active Directory Domain Service (AD DS) domain that contains a replication group. If you do not specify this parameter, the cmdlet uses the domain of the current user.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:100
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:True
Value from remaining arguments:False

-GroupName

Specifies an array of names of replication groups. You can use a comma separated list and the wildcard character (*). If you do not specify this parameter, the cmdlet uses all participating replication groups.

Parameter properties

Type:

String[]

Default value:None
Supports wildcards:True
DontShow:False
Aliases:RG, RgName

Parameter sets

(All)
Position:0
Mandatory:True
Value from pipeline:True
Value from pipeline by property name:True
Value from remaining arguments:False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Parameter properties

Type:SwitchParameter
Default value:False
Supports wildcards:False
DontShow:False
Aliases:wi

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Inputs

Microsoft.DistributedFileSystemReplication.DfsReplicationGroup

String

Outputs

Microsoft.DistributedFileSystemReplication.DfsrMember