SharePoint 内容部署-PowerShell

本文详细介绍了如何在 SharePoint 环境中创建、显示、获取、移除内容部署路径,以及如何创建、获取、移除内容部署工作,并提供了启动部署工作的指导。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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"
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值