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 s Olutionname.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 the Powershell:stsadm command is still useful for SharePoint 2010, but the official disapproved. PowerShell instead. PowerShell can do everything that stsadm can do, and more and faster. PowerShell command case is not sensitive.
[SharePoint 2010] SharePoint 2010 deployment, recovery, and removal solutions----stsadm and PowerShell