SharePoint 内容部署-PowerShell
1. 创建一个新的内容部署路径
New-SPContentDeploymentPath –Name "Marketing Internet Content" –SourceSPWebApplication "SharePoint – 80" –SourceSPSite "http://intranet.sp2010.com/Marketing" –DestinationCentralAdministrationURL "http://internet.sp2010.com:12345" –DestinationSPWebApplication "SharePoint – Internet" –DestinationSPSite "http://internet.sp2010.com/Marketing" –PathAccount (Get-Credential)
2. 显示场中配置的部署路径
Get-SPContentDeploymentPath
3. 获取指定的内容部署路径
$path = Get-SPContentDeploymentPath -Identity "Marketing Internet Content"
4. 移除一个内容部署路径
Remove-SPContentDeploymentPath "Marketing Internet Content"
5. 创建一个新的部署工作
New-SPContentDeploymentJob –Name "Marketing Deployment Job" –SPContentDeploymentPath "Marketing Internet Content"
6. 获取场中配置的部署工作
Get-SPContentDeploymentJob
7. 获取指定的内容部署工作
$job = Get-SPContentDeploymentJob -Identity "Marketing Deployment Job"
8. 移除一个内容部署工作
Remove-SPContentDeploymentJob "Marketing Deployment Job"
9. 启动一个内容部署工作
Start-SPContentDeploymentJob "Marketing Deployment Job"