Deploying custom wsp in SharePoint FARM are done in 2 steps - Adding solution, Deploying/Installing solution. These PowerShell commands will work with SharePoint 2010 and SharePoint 2013. For older versions like MOSS 2007, you need to use STSATM commands.
Verify and make sure the account has necessary permissions and SharePoint Management Shell is run as Administrator.
Add solution - Add-SPSolutionAdd the wsp solution package to the SharePoint FARM solution database. This is required before deploying the package.
Add-SPSolution -LiteralPath
Deploy solution - Install-SPSolution
The solution deployment command varies a bit based on the criteria whether it's for a particular web application or all web applications.
The deployment process can be done via Central Admin too.
[Deploy to single Web Application]
Install-SPSolution -Identity -WebApplication
[Deploy to all Web Applications]
Install-SPSolution -Identity -AllWebApplications -GACDeployment
Example
Add-SPSolution -LiteralPath "C:\WSP\Code2CareSolution.wsp"
Install-SPSolution -Identity Code2CareSolution.wsp -WebApplication "http://code2care.org"
- Move Copy Migrate SharePoint OneDrive files folders to different site collection location
- How to generate client id and secret to register SharePoint App with OAuth
- How to share SharePoint site or document with all users in organization
- Get-ADUser PowerShell - Get AD user details using email address
- error CAML Query containing special characters
- Access URL for SharePoint Tenant Admin Center (Online Office 365)
- Fix SharePoint Error - The Managed Metadata Service or Connection is currently not available. The Application Pool or Managed Metadata Web Service may not have been started
- SharePoint - The URL is invalid. It may refer to a nonexistent file or folder, or refer to a valid file or folder that is not in the current Web.
- How to delete SharePoint List Item programmatically using C#.Net
- How to Share Microsoft SharePoint Site with Users or Groups
- JSON column formatting to preview SharePoint Online file on mouse hover
- SharePoint List redirect user after submitting form NewForm.aspx
- See actual SharePoint error exception modify web.config
- SharePoint Server 2016 IT Preview Deprecated Removed features
- How to create SharePoint Document Library
- How to Get or Set SharePoint Document ID _dlc_DocId using PowerShell
- How to disable SharePoint subsite creation option for owners
- PowerShell - How to use Try Catch Finally blocks for error exception handling (Windows/SharePoint)
- SharePoint error - Your organization doesn't allow sharing with users from this domain. Please contact your IT department for help. (OSE403)
- [Solved] SharePoint Search Internal server error exception
- How to wrap column text in SharePoint Online Modern List Grid View using JSON formatting
- How to extend retiring SharePoint 2010 Workflows and continue with Office 365
- Changed AD user display name showing old name in SharePoint
- How to hide or remove quick launch left navigation from SharePoint Online Modern site page
- How to enable anonymous public access for SharePoint Online site collection, file, folder without login ?
- SharePoint excel error - A problem occurred while connecting to the server. If the problem continues, contact your administrator. - SharePoint
- Change label (text) color in tkinter - Python
- BSNL Broadband upgrades speed to minimum 2MBps for all users 512Kbps 1Mbps - HowTos
- Customize Praise badge for Microsoft Teams with own images, values, brand - Microsoft
- ModuleNotFoundError: No module named qdarkstyle.colorsystem [Python] - Python
- Android Lint app_name is not translated in af (Afrikaans) am (Amharic) ar (Arabic) bg (Bulgarian) - Android
- Show Notepad++ tabs in multiple lines instead of scroll on tab bar - NotepadPlusPlus
- How to Gzip a file directory on Mac OS X using Terminal Command - Mac-OS-X