NAME

Remove-DcsWitness

SYNOPSIS

Removes the specified witness from the server group.

SYNTAX

Remove-DcsWitness   -Witness <Object>   [ -Connection <String> ]   [ -PipelineVariable <String> ]

DESCRIPTION

Removes the specified witness from the server group.

PARAMETERS

-Witness<Object>
Name, object, or ID that identifies the witness to remove.

Required: true
Position: named
Default value:
Accept pipeline input: true (ByValue)
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

NOTES

Related cmdlets: Add-DcsWitness, Get-DcsWitness, Set-DcsWitnessProperties, Set-DcsServerGroupDefaultWitnessProperties, Set-DcsVirtualDiskWitnessProperties, Invoke-DcsWitnessContact.

EXAMPLES


-------------- Example 1 Removes the specified witness from the server group --------------
Get-DcsWitness | Remove-DcsWitness
		

In this example there is one witness configured in the server group. The cmdlet Get-DcsWitness is invoked to retrieve the WitnessData object for the server group. The object is piped to the cmdlet Remove-DcsWitness to remove that witness.