Create a New Deployment Job
Scenario/Problem: You need to setup and configure a new deployment job.
Solution: Use the New-SPContentDeploymentJob
cmdlet.
Setting up a new deployment job involves mapping the source web application and site to a target web application and site. You can use the New-SPContentDeploymentJob
cmdlet to facilitate this mapping, as shown in Listing 10.5
New-SPContentDeploymentJob -Name "Marketing Deployment Job" -SPContentDeploymentPath "Marketing Internet Content"
The -SPContentDeploymentPath
is the name of the deployment path used for this deployment job.
Note
A content deployment path must be configured first before a content deployment job can be created.
Get PowerShell™ for SharePoint® 2013 How-To now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.