Deploy, Reclaim, and Remove Solutions----STSADM and PowerShell

  

Deploy, Reclaim, and Remove Solutions----STSADM and PowerShell
Because the wsp solution is always deployed recently, commands are often used Line or PowerShell, so it is necessary to focus on the commands here, and you can quickly refer to them when deploying.

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.wspAbout PowerShell : The STSADM command is still useful for SharePoint 2010, but the official disapproval. PowerShell replaces it. PowerShell can do everything STSADM can do, and more and faster. PowerShell commands are not case sensitive. Like STSADM, PowerShell must run on SharePoint Server. PowerShell must be run as an administrator.
Copyright © Windows knowledge All Rights Reserved