Which Windows PowerShell commands should you run?

DRAG DROP
Your company network includes a SharePoint Server 2010 Service Pack 1 (SP1) server. You need to
deploy and activate a solution package named widgets.wsp that will be used on the
http://www.fabrikam.com/inventory site collection. You also need to restrict the system Resource:
used by the solution. Which Windows PowerShell commands should you run? (To answer, move the
appropriate commands from the list of commands to the answer area and arrange them in the
correct order.)

DRAG DROP
Your company network includes a SharePoint Server 2010 Service Pack 1 (SP1) server. You need to
deploy and activate a solution package named widgets.wsp that will be used on the
http://www.fabrikam.com/inventory site collection. You also need to restrict the system Resource:
used by the solution. Which Windows PowerShell commands should you run? (To answer, move the
appropriate commands from the list of commands to the answer area and arrange them in the
correct order.)

Answer:

Explanation:
To import a solution package by using Windows PowerShell
Verify that you meet the following minimum requirements: See Add-SPShellAdmin..
On the Start menu, click All Programs.
Click Microsoft SharePoint 2010 Products.
Click SharePoint 2010 Management Shell.
At the Windows PowerShell command prompt, type the following command:
Add-SPSolution -LiteralPath <SolutionPath>
The solution is added to the farm’s solution store. To use the solution, follow the procedure in the
next section in this article. For more information, see Add-SPSolution.
Deploying a solution package

You can deploy imported solutions by using the Central Administration Web site or by using
Windows
PowerShell. After a solution has been added to the solution store by using the Windows
PowerShellAdd-SPSolution cmdlet, it must be deployed to a site before it can be accessed.
Note:
You cannot add a solution to the solution store by using the Solution Management page in Central
Administration.
The following procedures show how to deploy an imported solution to a site in the farm by using
either the Central Administration Web site or Windows PowerShell.
To deploy a solution by using Central Administration
On the Central Administration Home page, click System Settings.
In the Farm Management section, click Manage farm solutions.
On the Solution Management page, click the solution that you want to deploy.
On the Solution Properties page, click Deploy Solution.
On the Deploy Solution page, in the Deploy When section, select one of the following:
Now At a specified time. If you select this option, specify a time by using the date and time boxes.
We recommend that you select a time when the load on the destination servers is low.
In the Deploy To? Section, in the A specific web application list, click either All web applications or
select a specific Web application.
Click OK.
To deploy a solution package to a single Web application by using Windows PowerShell
Verify that you meet the following minimum requirements: See Add-SPShellAdmin.
On the Start menu, click All Programs.
Click Microsoft SharePoint 2010 Products.
Click SharePoint 2010 Management Shell.
At the Windows PowerShell command prompt, type the following command:
Install-SPSolution -Identity <SolutionName> -WebApplication <URLname>
Where:
<SolutionName> is the name of the solution.
<URLname> is the URL of the Web application to which you want to deploy the imported solution.
By default, the solution is immediately deployed. You can also schedule the deployment by using the
time parameter. For more information, see Install-SPSolution.
http://technet.microsoft.com/en-us/library/cc262995.aspx
http://blogs.msdn.com/b/jorman/archive/2011/09/28/deploying-sharepoint-2010-solution-withpowershell.aspx



Leave a Reply 0

Your email address will not be published. Required fields are marked *