How to schedule User Profile Incremental Synchronization in SharePoint 2010 using Power shell


In this article we will be seeing how to schedule User Profile Incremental Synchronization in SharePoint 2010 using Power shell.

In SharePoint 2010 User Profile Service Application once you have configured the synchronization connections, you can schedule the User Profile Incremental Synchronization by going to Application Management => Manage services applications => User Profile Service => Synchronization => Configure Synchronization Timer Job.

1.gif

The same thing can be done using powershell commands.

Get-SPTimerJob is used to return timer jobs.

Get-SPTimerJob returns all the timer jobs with Name, Schedule and Last Run.

2.gif


The following one is used to display the Name and the Display Name.

3.gif

The following one is used to display the timer job status of a particular service application.

4.gif

UserProfile_ProfileImportJob => is the timer job for User Profile Incremental Synchronization.


Scheduling the User Profile Incremental Synchronization:

Get-SPTimerJob UserProfile_ProfileImportJob | Set-SPTimerJob -Schedule "weekly at sat 7:00" | Start-SPTimerJob

Schedule:

Specifies the schedule for running the timer job.

The type must be a valid SharePoint Timer service (SPTimer) schedule in the form of any one of the following schedules:

  • Every 5 minutes between 0 and 59
  • Hourly between 0 and 59
  • Daily at 15:00:00
  • Weekly between Fri 22:00:00 and Sun 06:00:00
  • Monthly at 15 15:00:00
  • Yearly at Jan 1 15:00:00



  

Up Next
    Ebook Download
    View all
    Learn
    View all