SharePoint PowerShell Command Series (3) Operations related commands for WSP solution packages

Source: Internet
Author: User

add-spsolution Example
Add-spsolution-literalpath c:\solution.wsp

Note This command simply adds a solution package to the SharePoint farm and does nothing else.

install-spsolution Example
Install-spsolution-identity solution.wsp-gacdeployment
Parameters
    • Force: Forces the deployment of a new solution package.
    • Allwebapplications: Deploys a new solution package to all Web applications in the farm.
    • Fulltrustbindeployment: Allow full trust for bin deployment.
    • Gacdeployment: Deploy to the global assembly cache.
    • Time: Deploy the solution package at the specified times, and the default is to deploy it immediately.
    • WebApplication: Deploys a new solution package for the specified Web application.
update-spsolution Example
Update-spsolution-identity Solution.wsp-literalpath c:\solutionv2.wsp-GACDeployment
Parameters
    • Force: Forces the update of the solution package.
    • Gacdeployment: Deploy to the global assembly cache.
    • Time: The solution package is updated at the specified times and is immediately deployed by default.
uninstall-spsolution Example
Uninstall-spsolution-identity solution.wsp
Parameters
    • Allwebapplications: Uninstalls the solution package from all Web applications in the farm.
    • WebApplication: Uninstalls the solution package from the specified Web application collection.
    • Time: The uninstall solution package is recycled at the specified times, and the default is to recycle the uninstallation immediately.

Note the command simply reclaims the deployed solution package and does not do anything else.

remove-spsolution Example
Remove-spsolution-identity solution.wsp

Enjoy SharePoint

SharePoint PowerShell Command Series (3) Operations related commands for WSP solution packages

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.