nerdexam
Microsoft

70-332 · Question #89

You have a SharePoint Server 2010 server farm. The farm contains a custom solution package (.wsp). You upgrade the farm to SharePoint Server 2013. You need to ensure that the solution package (.wsp)…

The correct answer is B. Update-SPSolution. When a solution package already exists in a SharePoint farm after an upgrade, Update-SPSolution must be run first to replace the deployed .wsp with the new version.

Maintain a SharePoint environment

Question

You have a SharePoint Server 2010 server farm. The farm contains a custom solution package (.wsp). You upgrade the farm to SharePoint Server 2013. You need to ensure that the solution package (.wsp) can be used in the farm. Which cmdlet should you run first?

Options

  • AAdd-SPSolution
  • BUpdate-SPSolution
  • CEnable-SPFeature
  • DInstall-SPSolution

How the community answered

(59 responses)
  • A
    15% (9)
  • B
    75% (44)
  • C
    3% (2)
  • D
    7% (4)

Why each option

When a solution package already exists in a SharePoint farm after an upgrade, Update-SPSolution must be run first to replace the deployed .wsp with the new version.

AAdd-SPSolution

Add-SPSolution adds a new solution to the farm store and will fail if the solution GUID already exists, which is the case after carrying over a .wsp from SharePoint 2010.

BUpdate-SPSolutionCorrect

Update-SPSolution replaces an existing solution package already present in the farm solution store with a newer version, which is the required first step after upgrading the farm. It retains the solution's deployment state and associations while swapping the package content, making it the correct starting point before re-deploying.

CEnable-SPFeature

Enable-SPFeature activates a specific feature that is already installed but does not update or replace the underlying solution package.

DInstall-SPSolution

Install-SPSolution deploys an already-added solution to specified web applications but cannot replace or update the solution package itself in the farm store.

Concept tested: SharePoint solution package upgrade using PowerShell cmdlets

Source: https://learn.microsoft.com/en-us/powershell/module/sharepoint-server/update-spsolution

Topics

#WSP solution upgrade#Update-SPSolution#PowerShell cmdlets#farm upgrade

Community Discussion

No community discussion yet for this question.

Full 70-332 Practice