Azure AD Connect sync: Prevent accidental deletes
This topic describes the prevent accidental deletes (preventing accidental deletions) feature in Azure AD Connect.
f this was unexpected, then investigate and take corrective actions. To see which objects are about to be deleted, do the following:
Start Synchronization Service from the Start Menu.
Go to Connectors.
Select the Connector with type Azure Active Directory.
Under Actions to the right, select Search Connector Space.
In the pop-up under Scope, select Disconnected Since and pick a time in the past. Click Search. This page provides a view of all objects about to be deleted. By clicking each item, you can get additional information about the object. You can also click Column Setting to add additional attributes to be visible in the grid.
The following command:
First run the following command just to make sure
Get-ADSyncExportDeletionThreshold | FT
Then disable it