Before we can configure a content deployment connection, we need to enable incoming content deployment jobs on the SharePoint farm to which we are deploying our content. Even if we are deploying to the same SharePoint farm the content is being deployed from, we still need to enable the incoming jobs. In this recipe, we will enable incoming content deployment jobs for our SharePoint farm.
Follow these steps to configure incoming content deployment jobs:
The target SharePoint farm will only allow content deployment connections if it has been configured to do so. In addition, requiring encryption will only allow connections using the Central Administration URL over SSL.
The farm content deployment configuration options may also be set with PowerShell or code using the server-side object model.
Follow these steps to configure the farm content deployment settings using PowerShell:
$cd = [Microsoft.SharePoint.Publishing.Administration.ContentDeploymentConfiguration]::GetInstance()
AcceptIncomingJobs
property to true
and RequiresSecureConnection
property to false
as follows:$cd.AcceptIncomingJobs = $true $cd.RequiresSecureConnection = $false
$cd.Update()
Follow these steps to configure the farm content deployment settings with code using the server-side object model:
var cd = Microsoft.SharePoint.Publishing.Administration.ContentDeploymentConfiguration.GetInstance();
AcceptIncomingJobs
property to true
and RequiresSecureConnection
property to false
as follows:cd.AcceptIncomingJobs = true; cd.RequiresSecureConnection = false;
cd.Update();
3.133.127.37