SharePoint Content Deployment Prerequisite--error features deactivate automation

Source: Internet
Author: User

The process for content deployment is simply:

General application Settings, Content Deployment-
1) Configure Content Deployment:
Connection Security->do not require encryption
Source status check->disable source status check
->ok
2) Check deployment of specific content:
The Type in the source URL and check the definition.
3) Manage Content Deployment Paths and Jobs:
New Path (Create the path from source to definition)
Notice:the source Web application ' s content database should distinguish the content database of the Destinition Web appli cation.
New Job (Create the job under the path to achieve the deployment of the content)

But before we run the job, we have to make sure we do the prerequisite, as follows:

1) Activate content Deployment Source feature and Cross-site Collection Publishing feature in Site Collection feature.

2) Check the content Deployment Source Status and all the error features are deactivate off.

For the deactivate process of the error features, we do this through PowerShell, where I have a simple encapsulation of the disable-spfeature command, which is convenient for our use, the code is as follows:

add-PSSnapin Microsoft.SharePoint.PowerShellfunctionDeactivatespfeature ($featureName,$SITEURL) {Disable-spfeature–identity$featureName–url$SITEURL}functionautodeactivatespfeature () {$flag=$true    $SITEURL= Read-host"Enter the site URL"     while($flag)    {        $featureName= Read-host"Enter the feature name"deactivatespfeature$featureName $SITEURL        $choice= Read-host"Press ' C ' to continue, no other key to quit"        if($choice -ne' C ') {            $flag=$false}}}autodeactivatespfeature

Save to a local PS1 file, run with PowerShell at execution time, and perform the following effects in the IDE:


After all the error features are deactivate, you will be prompted on the page:

"There is no errors, and this Site Collection is the ready for Content Deployment."

SharePoint Content Deployment Prerequisite--error features deactivate automation

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.