Geeks With Blogs

News invisible hit counter View My Stats

Technical Speaking

 

Recently I faced problem to deploy timer job in multi-farm environment. That’s why I thought to share it with you to save your time.

Deployment Instruction:

If you need to re-install or Remove Timer Job then do the following. It is always needed when you re-deploy your latest Implementation.

To remove the Timer Job, First disable the feature and then do the following:

  1. Disable the feature from Site Collection Administration->Site Collection Features
  2. Uninstall-SPSolution -Identity nameofsolution.wsp –allwebapplications
  3. Remove-SPSolution nameofsolution.wsp –force
    • Now Re-start SharePoint Timer Service
      1. Run net stop sptimerv4
      2. Run net start sptimerv4
    • Re-Start IIS is option but better to do
      1. Run iisreset

At First, You will do in Server 1 (Apps). This server is the one which contains all the services, and we will do the following:

  1. Copy the wsp package in the server you want to deploy the Timer Job (for instance c:\WSP)
  2. Go to the server were you want to deploy the solution and go to Start->SharePoint 2010 Management Shell
  3. Run the following command to add Timer Job package solution
    1. Add-SPSolution c:\WSP\solutionname.wsp
  4. Run the following command to Install solution
    1. install-spsolution solutionname.wsp -GACDeployment –force
  5. Now Re-start SharePoint Timer Service to re-load new Job
    1. Run net stop sptimerv4
    2. Run net start sptimerv4
  6. Re-Start IIS is option but better to do
    1. Run iisreset

image

(Note: This is enough in case of single server)

Now, do the following for every Front-End server, do the following:

  1. Go to Start->SharePoint 2010 Management Shell
  2. Run the following command to Install solution
    1. install-spsolution solutionname.wsp -GACDeployment –force
  3. Now Re-start SharePoint Timer Service to re-load new Job
    1. Run net stop sptimerv4
    2. Run net start sptimerv4
  4. (optional) Re-Start IIS 
    1. Run iisreset

2d514ee59c779bcf277b53cbf68fb59b

Finally, Enable the feature from Site Collection Administration->Site Collection Features

Cheers!!

Posted on Friday, July 12, 2013 3:31 PM SharePoint 2010 , SharePoint 2013 , Timer Job , SharePoint , Deployment , Powershell | Back to top


Comments on this post: Deploy Timer Job in Multi-Farm Environment.

# re: Deploy Timer Job in Multi-Farm Environment.
Requesting Gravatar...
Some truly superb blog posts on this web site ,thank you for contribution.
http://staygreenacademy.com/sharepoint-2013-training/
Left by SharePoint 2013 Online Training on Sep 08, 2015 11:49 AM

Your comment:
 (will show your gravatar)


Copyright © MJ Ferdous | Powered by: GeeksWithBlogs.net