SharePoint Content Deployment prerequisite——Error features deactivate automation

对于Content Deployment的过程简而言之就是:

General Application Settings -> Content Deployment ->
1) Configure content deployment :
Connection Security ->Do not require encryption
Source Status Check ->Disable Source Status Check
->OK
2) Check deployment of specific content :
Type in the source url and check the definition.
3) Manage Content Deployment Paths and Jobs:
New Path(Create the path from source to definition)
Notice: The source web application‘s content database should distinguish the content database of the destinition web application.
New Job(Create the job under the path to achieve the deployment of the content)

但是在跑job之前,我们要确保做好了prerequisite,如下:

1) 在Site collection feature中激活Content Deployment Source Feature以及Cross-Site Collection Publishing feature。

2) 检查Content Deployment Source Status,把所有Error features全都deactivate掉。

对于Error features的deactivate过程,我们通过PowerShell来完成,这里我将Disable-SPFeature命令进行了简单的封装,方便我们的使用,代码如下:

Add-PSSnapin Microsoft.SharePoint.PowerShell
function DeactivateSPFeature($featureName, $siteUrl)
{
    Disable-SPFeature –Identity $featureName –URL $siteUrl
}
function autoDeactivateSPFeature(){
    $flag = $true
    $siteUrl = Read-Host "Enter the site url"
    While($flag)
    {
        $featureName = Read-Host "Enter the feature name"
        DeactivateSPFeature $featureName $siteUrl
        $choice = Read-Host "Press ‘c‘ to continue, any other key to quit"
        if($choice -ne ‘c‘)
        {
            $flag = $false
        }
    }
}
autoDeactivateSPFeature

保存到本地ps1文件,执行时run with PowerShell即可,在IDE中执行效果如下:

所有的Error features都deactivate之后,页面上会提示:

“There are no errors and this Site Collection is ready for Content Deployment.”

时间: 2024-08-23 17:28:12

SharePoint Content Deployment prerequisite——Error features deactivate automation的相关文章

SharePoint 2013 Content Deployment 报错 These columns don't currently have unique values

错误描述: These columns don't currently have unique values. Content deployment job 'job name' failed.The exception thrown was 'System.ArgumentException' : 'These columns don't currently have unique values.' 错误截图,如下图: 错误日志位置,如下图: 在服务器上找到错误日志的位置,是压缩包,记得找对G

EXTRACT FILES AND IMAGES FROM A SHAREPOINT CONTENT DATABASE

If you ever had the problem where you need to extract files from a SharePoint Content Database or normal SQL Database stored as binary, this post will help you. The script I have included will export all the content from the SharePoint Content Databa

SharePoint Content Approval 功能简介

SharePoint 的Content Approval 是一个很基本的功能,其作用就是让一个文件被审核通过之后才能被某些用户看到,但是其实这个流程理解起来还是需要一些时间的,本文主要帮大家梳理一下相关的流程. 可以在List Setting中开启Content Approval 开启这个设置需要有以下几点注意 对于开启Content Approval之前就已经存在的文件,并且没有对该文件进行过操作,则开启后状态为Approved 对于开启Content Approval之前就已经存在的文件,且

小议:SharePoint Content Database Status: Read Only与Offline

我们知道SharePoint依赖于SQL Server的Content Database来做数据存储的,但有些企业在管理数据时会提出很多需求:比如Content Database 1只存储客户信息相关的Site Collection:存储在某些Content Database下的Site Collection里的数据只能读不能写等等需求,那么面对这些需求,就需要我们精准的了解Content Database的Status以及如何设置? Content Database 的Status分2钟:Re

验证iaas的sql服务器出现error configuring vRealize automation server

问题描述:在虚拟化中Centos通过克隆方式新克隆出来的虚拟机,网卡无法启动. 解决方法:因为克隆出来的虚拟机,网卡MAC地址改变了,与系统中的MAC地址对不上了,所以网卡无法启动,通过创建自定义规范文档,一直默认下一步命名Linux即可.然后在vlcoud的设计–蓝图里面,在centos蓝图下有个自定义规范,输入Linux.

SharePoint 2013 中的 PowerPoint Automation Services

简介 许多大型和小型企业都将其 Microsoft SharePoint Server 库用作 Microsoft PowerPoint 演示文稿的存储库.所有这些企业在存储.分发和更新演示文稿方面都有其特定的需求.Microsoft PowerPoint Automation Services 是 Microsoft SharePoint Server 2013 的一种新功能,可帮助企业管理其演示文稿.它是一项共享服务,可提供无人参与的.服务器端至其他格式的演示文稿转换.其最初便是针对在服务器

怎样用命令行管理SharePoint Feature?

普通情况下对IT管理者来说.在SharePoint Farm中维护Feature,更喜欢使用命令行实现,这样能够省去登录到详细网站的操作. 比方IT接到end user的一个需求,要开启Site Collection Feature,假设直接操作就要登录site collection-> Site Setting找到Feature点击运行enable\disable.要是使用命令行直接输入命令和站点会更快捷. 以下我们就以SharePoint2013为例,看下对于Feature的enable.d

SharePoint 错误集

1. Delete a site collection · Run command : Remove-SPSite –Identity http://ent132.sharepoint.hp.com/teams/monitor/ –GradualDelete –Confirm:$False · In CA Central Administration->Application Management ->Delete a Site collection Change the site colle

SharePoint 2013 内容部署报错

错误信息 一 Export ran out of memory while compressing a very large file. To successfully export, turn compression off by specifying the -nofilecompression parameter. Content deployment job 'GDeploy' failed.The exception thrown was 'Microsoft.SharePoint.S