PowerShell Operations SharePoint Command set

Source: Internet
Author: User

Open the SharePoint Management Shell, and then run as Administrator. Execute the following command

1. Adding WSP and Installation
Add-spsolution-literalpath "C:\DEPLOYRESOURCE\WSP\TEST.WSP"
Install-spsolution-identity "test.wsp"-webapplication "http://domain:port/"-gacdeployment-force

Remove-webapplication "http://domain:port/" if it is a resource-free installation

2. Update wsp: update-spsolution-identity splistupdatead.wsp-literalpath "D:\BackupOfBackup\Release_20141010\ WSP\SPLISTUPDATEAD.WSP "-gacdeployment

3. backup wsp: get-spsolution | Where {$_. Name-eq "SPLISTUPDATEAD.WSP"} | foreach-object{$_. Solutionfile.saveas ("D:\Backwsp\" +$_. Name)}

4. To remove the WSP, you need to solution>retract the WSP in Ca>system Settings>farm before executing the PowerShell script below
Remove-spsolution-identity "HKEXSITEWAKEUPTIMERJOB.WSP"-confirm: $false

5. Remove the timer job

$job = Get-sptimerjob-id 3219759c-c748-444c-9ed7-bb3afb17fc9f
$job. Delete ()

6. Query the timer job
Get-sptimerjob | where {$_.name-like "*hkex*"} |ft Id,name

7. Activating feature
Enable-spfeature-identity "Sharepointwebpartproject_sharepointwebpartfeature"-url http://www.contoso.com
8. Disable feature
Disable-spfeature-id 1563deb1-0c37-481c-9463-f3581e720897-url Http://www.contoso.com-Url http://www.contoso.com

PowerShell Operations SharePoint Command set

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.