Restart the SharePoint OWSTIMER

There are a lot reasons to restart the Timer Job in SharePoint. You can do it by going to Services and stop the owstimer service. Is this the only way? Are there more even better ways?
Well, there are some other ways, but there is no best practice. 


A) PowerShell Multiple Server Farm:
     $farm = Get-SPFarm
     $farm.TimerService.Instances | foreach { $_.Stop(); $_.Start(); }

B) PowerShell Single Server Farm:
     restart-service sptimerv4

C) CMD (needs to be repeated on each server):
     net stop SPTimerV4
     net start SPTimerV4

My favorite is A, because this one makes it easy maintaining a multiple server farm.

Comments

Popular posts from this blog

How to support multiple languages in WPF