NAME

Set-DcsWitnessProperties

SYNOPSIS

Sets the properties for the specified witness.

SYNTAX

Set-DcsWitnessProperties   -Witness <Object>   [ -Name <String> ]   [ -Address <String> ]   [ -Connection <String> ]   [ -PipelineVariable <String> ]

DESCRIPTION

Sets the properties for the specified witness. This cmdlet can be used to change the name or IP address of a witness.

PARAMETERS

-Witness<Object>
Object, name or ID that identifies the witness.

Required: true
Position: named
Default value:
Accept pipeline input: true (ByValue)
Accept wildcard characters: false

-Name<String>
New name to assign to the specified witness.

Required: false
Position: named
Default value:
Accept pipeline input: false
Accept wildcard characters: false

-Address<String>
New IP address to use for the specified witness. For instance, "172.99.999.99".

Required: false
Position: named
Default value:
Accept pipeline input: false
Accept wildcard characters: false

-Connection<String>
Alias of the connection to the server group. If not specified, the default connection is used.

Required: false
Position: named
Default value:
Accept pipeline input: false
Accept wildcard characters: false

-PipelineVariable<String>

Required: false
Position: named
Default value:
Accept pipeline input: false
Accept wildcard characters: false

INPUTS

WitnessData : Object that identifies the witness.

OUTPUTS

WitnessData : Object that identifies the witness.

NOTES

See Get-DcsVirtualDisk example to get current WitnessId and WitnessOption values set for all virtual disks. Related cmdlets: Set-DcsServerGroupDefaultWitnessProperties, Add-DcsWitness, Get-DcsWitness, Remove-DcsWitness, Set-DcsVirtualDiskWitnessProperties.

EXAMPLES


-------------- Example 1 Changes the name and address for the specified witness --------------
Set-DcsWitnessProperties -Witness "Witness 2" -Name "FTL Witness" -Address "172.88.88.888"
		

The name of the Witness named "Witness 2" is changed to "FTL Witness" and the IP address is changed to "172.88.88.888". The WitnessData object is returned.

Alias:FTL Witness
IPAddress:172.88.88.888
Sequencenumber:2384950
Id:f199cd79c9e4472a90fb5f976a1ae25a
Caption:FTL Witness
ExtendedCaption:
Internal:False