如何在整个服务器场中导出非文档内容类型 [英] How to export non-document content types across the farm

查看:54
本文介绍了如何在整个服务器场中导出非文档内容类型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在整个服务器场中导出非文档类型的内容类型?任何帮助,我们都感激不尽.

Is there a way to export out content types across the farm which are not of the Document type?  Any help is really appreciated.

Shonilchi ..

Shonilchi..

推荐答案

您好Shonilchi,

Hi Shonilc

您可以通过PowerShell脚本导出网站内容类型.在PowerShell脚本中,您可以检查网站内容类型是否不在文档内容类型组中,然后将网站内容类型导出到xml文件中.

You can export the site content types by PowerShell script. In PowerShell script, you could check if the site content type is not in the document content types group, then export the site content type to the xml file.

有一个演示.您可以将站点更改为您的站点.

There is a demo. You could change the site to your site.


sourceWeb = Get-SPWeb http://sp:20971
sourceWeb = Get-SPWeb http://sp:20971


xmlFilePath ="C:\ test \ file.xml" #创建导出文件 New-Item
xmlFilePath = "C:\test\file.xml" #Create Export File New-Item


这篇关于如何在整个服务器场中导出非文档内容类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆