You could include this script in your scripts to be run first, or just include the command that registers the snapin:

Add-PSSnapin Microsoft.SharePoint.PowerShell

This article covers one of the most basic tasks one would do when administrating SharePoint: Deploy SharePoint solutions (WSP) and enable/disable features.

Working with Solutions

In the ‘old’ days (let us not forget that the stsadm is still there and we have a lot of SharePoint 2007 installations across the globe), the following stsadm command could be used to add a SharePoint solution to SharePoint:

stsadm –o addsolution –filename “D:\Deploy\MySPSolution.wsp“

We used the following command to deploy the solution once installed to a specific web application:

If you would like to add the solution as sandboxed, you would use the Install-SPUserSolution command instead. To upgrade a solution, we specify which solution is to be updated and with which new solution file:

No comments:

Post a Comment

About Me

Expert on Microsoft Collaborative Technologies (SharePoint, Microsoft Online Services, Office 365); Software Engineer and currently work as a SharePoint Consultant, Pune-India. Hold an Engineering Degree in IT from Pune University; MCP (SharePoint Applications). Declaimer: I make no claims anything you read here is technically correct although I do attempt to prove my thinking through research and experience; your comments are important so please feel free to add your thoughts or queries. "Hope someone might find this useful".