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
1. Verify that you meet the following minimum requirements.
2. On the Start menu, click All Programs.
3. Click Microsoft SharePoint 2010 Products.
4. Click SharePoint 2010 Management Shell.
5. At the Windows PowerShell command prompt, type the following command:
6. Install-SPSolution -Identity <SolutionName> -WebApplication <URLname>
Where:
o <SolutionName> is the name of the solution.
o <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 0

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