Configuring the farm content deployment settings

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.

How to do it…

Follow these steps to configure incoming content deployment jobs:

  1. Navigate to Central Administration on the target SharePoint farm in your preferred web browser.
  2. Click on General Application Settings as shown in the following screenshot:
    How to do it…
  3. Click on Configure content deployment from the Content Deployment section as shown in the following screenshot:
    How to do it…
  4. Select Accept incoming content deployment jobs as shown in the following screenshot:
    How to do it…
  5. If SSL is not configured for the Central Administration web application (it is not configured by default) set the Connection Security setting to Do not require encryption as shown in the following screenshot:
    How to do it…
  6. Click on OK.

How it works…

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.

There's more…

The farm content deployment configuration options may also be set with PowerShell or code using the server-side object model.

Configuring the farm content deployment settings using PowerShell

Follow these steps to configure the farm content deployment settings using PowerShell:

  1. Get the content deployment configuration instance for the local SharePoint farm as follows:
    $cd = [Microsoft.SharePoint.Publishing.Administration.ContentDeploymentConfiguration]::GetInstance()
    
  2. Set the AcceptIncomingJobs property to true and RequiresSecureConnection property to false as follows:
    $cd.AcceptIncomingJobs = $true
    $cd.RequiresSecureConnection = $false
    
  3. Update the configuration instance using the following command:
    $cd.Update()
    

Configuring the farm content deployment settings with code using the server-side object model

Follow these steps to configure the farm content deployment settings with code using the server-side object model:

  1. Get the content deployment configuration instance for the local SharePoint farm as follows:
    var cd = Microsoft.SharePoint.Publishing.Administration.ContentDeploymentConfiguration.GetInstance();
  2. Set the AcceptIncomingJobs property to true and RequiresSecureConnection property to false as follows:
    cd.AcceptIncomingJobs = true;
    cd.RequiresSecureConnection = false;
  3. Update the configuration instance using the following line of code:
    cd.Update();
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.133.127.37