Which Windows PowerShell command should you run?

You are the administrator for your company’s SharePoint environment. Company policy requires
that you use Windows PowerShell to deploy farm solutions.
You need to deploy a SharePoint solution to the farm. The solution is named solution.wsp and is
located at c:\solution.wsp.
Which Windows PowerShell command should you run?

You are the administrator for your company’s SharePoint environment. Company policy requires
that you use Windows PowerShell to deploy farm solutions.
You need to deploy a SharePoint solution to the farm. The solution is named solution.wsp and is
located at c:\solution.wsp.
Which Windows PowerShell command should you run?

A.
Enable-SPFeature-Identitysolution

B.
Install-SPSolution -Identity solution.wsp -Confirm $true

C.
Update-SPSolution -Identity solution.wsp -LiteralPath c:\soIution.wsp -Confirm $true

D.
Add-SPSolution solution.wsp-Confirm $true

Explanation:
To deploy a solution package to a single Web application by using Windows PowerShell
Verify that you meet the following minimum requirements.
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.
Deploy solution packages (SharePoint Server 2010)
https://technet.microsoft.com/en-us/library/cc262995(v=office.14).aspx



Leave a Reply 1

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