SharePoint commands Install, deploy, recycle, delete, update WSP packages (solution)

Source: Internet
Author: User

First open the SharePoint Management Shell, such as:

Execute the following command in the command window above to achieve the desired:

  1. Add: Add to SharePoint Solution

    Stsadm-o addsolution-filename [wsp file path]

    Example: Stsadm-o addsolution-filename C:\SharePoint.Notice.wsp

  2. Deploy: Deploy the solution to a specified site

    Stsadm-o Deploysolution-name [wsp name]-immediate-url [site to publish]-allowgacdeployment

    Example: Stsadm-o deploysolution-name sharepoint.notice.wsp-immediate-url http://hkc-allowGacDeployment

  3. Recycle: Recycle the solution from a specified site, but the solution is still in SharePoint solutions

    Stsadm-o Retractsolution-name [wsp name]-immediate-url [site to recycle]

    Example: Stsadm-o retractsolution-name sharepoint.notice.wsp-immediate-url HTTP://HKC

  4. Delete: Remove the solution from SharePoint

    Stsadm-o Deletesolution-name [wsp name]

    Example: Stsadm-o deletesolution-name SharePoint.Notice.wsp

  5. Update: Directly update the solution under a site (provided that the updated solution already exists without recycling and deletion)

    Stsadm.exe-o Upgradesolution-name [wsp name]-filename [wsp file path]-immediate-allowgacdeployment

    Example: Stsadm.exe-o upgradesolution-name sharepoint.bbs.wsp-filename C:\SharePoint.BBS.wsp-immediate- Allowgacdeployment

SharePoint commands Install, deploy, recycle, delete, update WSP packages (solution)

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.