> For the complete documentation index, see [llms.txt](https://docs.lithnet.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.lithnet.io/mim-sync-service/usage/cmdlet-reference/sync-csobject.md).

# Sync-CSObject

## Synopsis

Performs a synchronization on a connector space object

## Syntax

```
Sync-CSObject [-CSObject] <CSObject> [-Commit] [-Delta] [<CommonParameters>]
```

## Description

The [Sync-CSObject](/mim-sync-service/usage/cmdlet-reference/sync-csobject.md) cmdlet performs a synchronization preview of a full or delta synchronization, and optionally can commit those changes to the metaverse

## Parameters

#### -CSObject \<CSObject>

The connector space object to synchronize

|                             |       |
| --------------------------- | ----- |
| Required?                   | true  |
| Position?                   | 1     |
| Default value               |       |
| Accept pipeline input?      | true  |
| Accept wildcard characters? | false |

#### -Commit \<SwitchParameter>

Specifies that the preview should be committed to the metaverse after being generated

|                             |       |
| --------------------------- | ----- |
| Required?                   | false |
| Position?                   | named |
| Default value               |       |
| Accept pipeline input?      | false |
| Accept wildcard characters? | false |

#### -Delta \<SwitchParameter>

Specifies that a delta synchronization should be performed. A full synchronization is performed unless this switch is specified

|                             |       |
| --------------------------- | ----- |
| Required?                   | false |
| Position?                   | named |
| 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

### Perform a full synchronization preview

This command show will perform a sync preview of the specified connector space object. The resulting preview information is returned and can then be examined.

```
PS C:\> $cs = Get-CSObject -RDN "CN=John Smith" -MA "ADMA"
Sync-CSObject $cs
CSOperation        : disconnected
MVOperation        : disconnected
CSObject           : 14
MVObject           : cfa22df7-ae07-e611-b778-005056b50bb9
ImportFlowRules    :
MVChanges          : {CFA22DF7-AE07-E611-B778-005056B50BB9}
JoinResult         :
ProvisioningResult : Lithnet.Miiserver.Client.ProvisioningResult
MVDeletionDetails  : dont-delete-wrong-ma
AttributeRecalls   : Lithnet.Miiserver.Client.MVRecall
FilterRules        : Lithnet.Miiserver.Client.FilterRules
Exports            : {d1a22df7-ae07-e611-b778-005056b50bb9, d0a22df7-ae07-e611-b778-005056b50bb9}
Error              :
```

### Perform a delta synchronization preview

```
PS C:\> $cs = Get-CSObject -RDN "CN=John Smith" -MA ACMA
Sync-CSObject $cs -Delta
```

### Commit a full synchronization preview

```
PS C:\> $cs = Get-CSObject -RDN "CN=John Smith" -MA ACMA
Sync-CSObject $cs -Commit
```

### Commit a delta synchronization preview

```
PS C:\> $cs = Get-CSObject -RDN "CN=John Smith" -MA ACMA
Sync-CSObject $cs -Commit -Delta
```

### Commit a full synchronization preview using the pipeline

```
PS C:\> Get-CSObject -RDN "CN=John Smith" -MA ACMA | Sync-CSObject -Commit 
```

### Commit a full synchronization preview on pending exports in a connector space

```
PS C:\> Get-PendingExports -MA ACMA | Sync-CSObject -Commit 
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.lithnet.io/mim-sync-service/usage/cmdlet-reference/sync-csobject.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
