Creating Custom Timer Job in SharePoint 2010


Creating Custom Timer Job in SharePoint 2010

http://dotnetfinder.wordpress.com/2010/07/24/creatingcustomsharepointtimerjob2010/ http://msdn.microsoft.com/en-us/library/ff798313.aspx

Adding

To add a solution to the Farm solution store use the Add-SPSolution cmdlet:
Add-SPSolution –LiteralPath "C:\Deployment\MySharePointSolutionPackage.wsp"
To add a Sandboxed solution  use the Add-SPUserSolution cmdlet:
Add-SPUserSolution –LiteralPath "C:\Deployment\MySharePointSolutionPackage.wsp" –Sitehttp://webapplication/sitecollection

Installing

To install ( commonly known as deploy)  a Farm Solution we use the Install-SPSolutioncmdlet:
Install-SPSolution –Identity MySharePointSolutionPackage.wsp –WebApplicationhttp://webapplication –GACDeployment
To install ( commonly known as deploy)  a Sandboxed Solution we use the Install-SPUserSolution cmdlet:
Install-SPUserSolution –Identity MySharePointSolutionPackage.wsp –Sitehttp://webapplication/sitecollection

Updating

To update (know as upgrade in stsadm) a Farm solution use the Update-SPSolution cmdlet:
Update-SPSolution –Identity MySharePointSolution.wsp –LiteralPath “C:\Deployment\MySharePointSolutionPackage.wsp” –GacDeployment
To update (know as upgrade in stsadm) a Sandbox solution use the Update-SPUserSolutioncmdlet:
Update-SPUserSolution –Identity MySharePointSolution.wsp –Sitehttp://webapplication/site –ToSolution MySharePointSolutionPackage.wsp

Removing

To uninstall and remove FARM level solutions use the Uninstall-SPSolution and Remove-SPSolution cmdlets:
Uninstall-SPSolution –Identity MySharePointSolution.wsp –WebApplicationhttp://webapplication
Remove-SPSolution –Identity MySharePointSolution.wsp
To uninstall and remove Sandbox solutions use the Uninstall-SPSolution and Remove-SPSolution cmdlets:
Uninstall-SPUserSolution –Identity MySharePointSolution.wsp –Sitehttp://webapplication/sitecollection
Remove-SPUserSolution –Identity MySharePointSolution.wsp –Sitehttp://webapplication/sitecollection
To get a list of all of the powershell cmdlets that deal with solutions use:
Get-Command –noun *SPSolution*

About sharepointsriram

9+ Yrs of IT experience
This entry was posted in Sharepoint 2010 Central Administration. Bookmark the permalink.

Leave a comment