kwizcom banner advertisement

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!
Change Timer Job Schedule in SharePoint using PowerShell Change Timer Job Schedule in SharePoint using PowerShell Reviewed by Salaudeen Rajack on 1:33 PM Rating: 5

No comments:

Please Login and comment to get your questions answered!

Powered by Blogger.