# Set-DisconnectorState

## Synopsis

Sets the state of a disconnector

## Syntax

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

## Description

The [Set-DisonnectorState](https://docs.lithnet.io/mim-sync-service/usage/cmdlet-reference/set-disconnectorstate) 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](http://go.microsoft.com/fwlink/?LinkID=113216).

## 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
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.lithnet.io/mim-sync-service/usage/cmdlet-reference/set-disconnectorstate.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
