Saturday, March 12, 2016

Change Timer Job Schedule in SharePoint using PowerShell

Requirement:  Change timer job schedule in SharePoint for "User Profile Service Application - Activity Feed Job".

Solution: To Set SharePoint timer job schedule, follow these steps:

  • Go to the Central Administration >> Monitoring >> Timer Job >> Review job definitions
  • Find "User Profile Service Application - Activity Feed Job", 
  • In Edit Timer job page, set up the activity feed sync time according to your needs. By default, its set to run for every 10 Minutes.
    sharepoint timer job schedule powershell
SharePoint PowerShell to change timer job schedule
SharePoint 2013 timer job Schedules can be set through the Set-SPTimerJob cmdlet. Here is the PowerShell script to change timer job schedule.
#Timer job Display name 
$TimerJobName="User Profile Service Application - Activity Feed Job"

#Get the Timer job
$TimerJob = Get-SPTimerJob | Where-Object { $_.displayname -like $TimerJobName }

#Set sharepoint timer job schedule powershell
Get-SPTimerJob $TimerJob | Set-SPTimerJob -Schedule "Every 5 minutes between 0 and 59"

Write-host "Timer Job Schedule updated!" -ForegroundColor Green
This script sets the timer job schedule to 5 minutes!



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...