Microsoft
70-332 · Question #89
70-332 Question #89: Real Exam Question with Answer & Explanation
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.
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
Explanation
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.
Common mistakes.
- A. 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.
- C. Enable-SPFeature activates a specific feature that is already installed but does not update or replace the underlying solution package.
- D. 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
Reference. https://learn.microsoft.com/en-us/powershell/module/sharepoint-server/update-spsolution
Community Discussion
No community discussion yet for this question.