NAME
Add-DcsWitness
SYNOPSIS
Adds a witness as an object in the server group configuration. This cmdlet is used when adding a witness that will be configured for a specific virtual disk.
SYNTAX
Add-DcsWitness -Name <String> -Address <String> [ -Connection <String> ] [ -PipelineVariable <String> ]
DESCRIPTION
Adds a witness as an object in the server group configuration. This cmdlet is used when adding a witness that will be configured for a specific virtual disk. After the witness is added, set the witness properties for the virtual disk using Set-DcsVirtualDiskWitnessProperties.
PARAMETERS
- -Name<String>
- Computer name or ID of the server to be added as a witness in the server group. The computer name must be unique or the name must be fully qualified.
-
- Required: true
- Position: named
- Default value:
- Accept pipeline input: false
- Accept wildcard characters: false
-
- -Address<String>
- The IP address for the witness. For instance, "172.99.999.99".
-
- Required: true
- Position: named
- Default value:
- Accept pipeline input: false
- Accept wildcard characters: false
-
- -Connection<String>
- Alias representing 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
OUTPUTS
WitnessData : Object that identifies the witness.
NOTES
Related cmdlets: Set-DcsServerGroupDefaultWitnessProperties, Set-DcsVirtualDiskWitnessProperties, Set-DcsWitnessProperties, Get-DcsWitness, Remove-DcsWitness, Invoke-DcsWitnessContact.
EXAMPLES
Add-DcsWitness -Name "Witness 2" -Address "172.88.88.888"
The network device with the IP address "172.88.88.888" is added as a witness in the server group and named "Witness 2". The WitnessData object is returned.
Alias | : | Witness 2 |
Server | : | |
IPAddress | : | 172.88.88.888 |
Sequencenumber | : | 1232600 |
Id | : | 8d15390ca0bb4db5ade39938cac0fd9a |
Caption | : | Witness 2 |
ExtendedCaption | : | |
Internal | : | False |