Get a Specific Content Deployment Job

Scenario/Problem: You need to obtain a specific content deployment path reference.

Solution: Use the Get-SPContentDeploymentJob cmdlet to assign a variable the results using the -Identity parameter.

Providing the identity of the content deployment job with the Get-SPContentDeploymentJob cmdlet retrieves a specific content deployment job. Use this to assign the results to an object for use in other cmdlets, as shown in Listing 10.7.

Listing 10.7. Assigning a Variable to a Specific Content Deployment Job

$job = Get-SPContentDeploymentJob -Identity "Marketing Deployment Job"

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.