Set-DisconnectorState

Synopsis

Sets the state of a disconnector

Syntax

Set-DisconnectorState [-CSObject] <CSObject> [-Type] <DisconnectorState> [<CommonParameters>]

Description

The Set-DisonnectorState cmdlet allows you to change the state of a disconnector from explicit to normal and vice versa

Parameters

-CSObject <CSObject>

The disconnected connector space object to modify

Required?

true

Position?

1

Default value

Accept pipeline input?

true

Accept wildcard characters?

false

-Type

The disconnector type to change the specified CSObject to

Required?

true

Position?

2

Default value

Accept pipeline input?

false

Accept wildcard characters?

false

<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, PipelineVariable, and OutVariable. For more information, see about CommonParameters.

Examples

Change a disconnector to an explicit disconnector

PS C:\> $cs = Get-CSObject -RDN "CN=John Smith" -MA ACMA
Set-DisconnectorState -CSObject $cs -Type Explicit

Change a disconnector to an explicit disconnector using the pipeline

PS C:\> Get-CSObject -RDN "CN=John Smith" -MA ACMA | Set-DisconnectorState -Type Explicit

Change an explicit disconnector to a normal disconnector

PS C:\> $cs = Get-CSObject -RDN "CN=John Smith" -MA ACMA
Set-DisconnectorState -CSObject $cs -Type Normal

Convert explicit disconnectors caused by pending deletes back into normal connectors

PS C:\> Get-PendingExportDeletes -MA ACMA | Set-DisconnectorState -Type Normal

Last updated