Deployment, recovery, and deletion solutions-STSADM and PowerShell

Source: Internet
Author: User

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.


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.