You are currently offline, waiting for your internet to reconnect

Only the OU setting is removed when you run the Remove-SPProfileSyncConnection cmdlet in SharePoint Server 2013

Consider the following scenario:
  • You enable the SharePoint Active Directory Import option for the User Profile Service Application in Microsoft SharePoint 2013. To do this, you use SharePoint Central Administration or SharePoint Management Shell.
  • You create a profile synchronization connection by using the Add-SPProfileSyncConnection cmdlet.
  • You try to remove the profile synchronization connection by using the Remove-SPProfileSyncConnection cmdlet.
In this scenario, the profile synchronization connection is not removed correctly. Specifically, the Remove-SPProfileSyncConnection cmdlet only removes the organizational unit (OU) setting from the profile synchronization connection.
To remove the profile synchronization connection, run the following script:
$ctx=Get-SPServiceContext -Site <Site in the SharePoint Farm>$UPCM=New-Object Microsoft.Office.Server.UserProfiles.UserProfileConfigManager $ctx$UPCM.ConnectionManager|% Delete
More information
For more information about the Add-SPProfileSyncConnection cmdlet, go to the following Microsoft website:For more information about the Remove-SPProfileSyncConnection cmdlet, go to the following Microsoft website:

Article ID: 2758430 - Last Review: 12/09/2013 03:15:00 - Revision: 2.0

  • Microsoft SharePoint Server 2013
  • kbsurveynew kbtshoot kbexpertiseinter KB2758430