Skip to main content

Unregister-DCShare

SYNOPSIS

Removes a specific share from the list of registered shares.

SYNTAX

__AllParameterSets

Unregister-DCShare [-Name] <string[]> [<CommonParameters>]

DESCRIPTION

Removes a specific share from the list of registered shares.

EXAMPLES

EXAMPLE 1

Get-DCShare | Unregister-DCShare

Clears all registered shares.

PARAMETERS

-Name

The exact name of the share to unregister.

Type: System.String[]
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: 0
IsRequired: true
ValueFromPipeline: true
ValueFromPipelineByPropertyName: true
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

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.