Saturday, August 27, 2016

Create User Profile Synchronization Connection in SharePoint 2016 using PowerShell

User Profile Service Synchronization Connection in SharePoint specifies the source for importing user profiles from active director or any other profile source. To add new synchronization connection in SharePoint 2016:

  • Go to SharePoint 2016 Central Administration >> Application Management 
  • Manage Service applications >> select User Profile Service application 
  • On User profile service application page, click on "Configure Synchronization Connections" >> Create New Connection 
  • Fill in the details according to your environment.
    create user profile synchronization connection powershell
    Add new synchronization connection 

PowerShell Script to create user profile synchronization connection:
Add-PSSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue

#Configuration Parameters
$ImportDomain = "Crescent"
$ImportUserName="SP16_ProfileImport"
$ImportPassword = Read-host "Enter the Password for Import Account:" -AsSecureString 
 
$ServiceAppName="User Profile Service Application"
$ImportOU="OU=Users,DC=Crescent,DC=com"
$ForestName="Crescent.com"
$FilterDisabledUsers = $True
 
#Get User Profile Service application
$UPS=Get-SPServiceApplication -Name $ServiceAppName

#Create User Profile Synchronization Connections 
Add-SPProfileSyncConnection -ProfileServiceApplication $UPS -ConnectionForestName $ForestName -ConnectionDomain $ImportDomain -ConnectionUserName $ImportUserName -ConnectionPassword $ImportPassword -ConnectionSynchronizationOU $ImportOU -ConnectionUseDisabledFilter $FilterDisabledUsers



You might also like:
SharePoint Usage Reports
Usage reports, collaboration and audit for SharePoint.
Document SharePoint Farm
Automatically generate SharePoint documentation.
*Sponsored


Check out these SharePoint products:

No comments :

Post a Comment

Please Login and comment to get your questions answered!


You might also like:

Related Posts Plugin for WordPress, Blogger...