Deployment, recovery, and deletion solutions-STSADM and PowerShell
Deploy, detach, and delete solutions-STSADM and PowerShell often use command lines or PowerShell because wsp solutions are always to be deployed recently. Therefore, it is necessary to put the commands here, quick Reference during deployment. STSADM
stsadm -o addsolution –filename c:\bin\CustomerSiteSearch.wspstsadm -o deploysolution –name CustomerSiteSearch.wsp -url http://[ServerName] -allowgacdeployment -force –immediatestsadm -o activatefeature –name customersitesearch_feature1 -url http://[ServerName] -forcestsadm -o retractsolution -name solutionName.wsp -immediatestsadm -o deletesolution -name solutionName.wsp
PowerShell
Add-SPSolution c:\bin\CustomerSiteSearch.wspInstall-SPSolution -Identity CustomerSiteSearch.wsp -AllWebApplications -GACDeploymentEnable-SPFeature CustomerSiteSearch_feature1 -url http://[ServerName]/ –forceUninstall-SPSolution -identity solutionName.wspRemove-SPSolution -identity solutionName.wsp
About PowerShell: The STSADM command is still useful for SharePoint 2010, but the official disapproval. Replace PowerShell. PowerShell can do everything STSADM can do, and more and faster. PowerShell commands are case insensitive. Like STSADM, PowerShell must run on SharePoint Server. PowerShell must run as an administrator.