Schedule full user profile synchronization in sharepoint 2010 & 2013

In this article we will be seeing how to Start Full Synchronization to import the user profile in SharePoint 2010 or 2013
Once you have Configured Synchronization connections in the User Profile Service Application you need to run the “Start Full Synchronization” to import the user profiles. This can be done through UI, programmatically and using powershell commands. Here we will be starting the Full Synchronization using powershell.

Add-PsSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue -WarningAction SilentlyContinue | Out-Null
$UserProfileService= Get-SPServiceApplication | where { $_.DisplayName -eq “YOUR User Profile Service Application NAME HERE”}
$UserProfileService.StartImport($true)

Go to your Windows scheduler and set new task which will run powershell script, remember to set to grant privilegies option and set to run script as a Administrator option also in General section in task configuring please.

power.gif

 

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s