问题描述
我需要将Sharepoint场中的所有文档导出到文件系统,例如http://webapp01/site01/shared%20Documents/Document01.docx将导出到\\ server \ webapp01 \ site01 \ shared文档\ document01.docx.
I have a requirement to export all documents on a Sharepoint farm to a file system, for example http://webapp01/site01/shared%20Documents/Document01.docx would be exported to \\server\webapp01\site01\shared documents\document01.docx.
虽然我找到了一个免费的工具,可以按照上述方式输出文档,但是它没有通过任何子站点进行迭代,即http://webapp01/site01/subsite01/shared%20Documents/spreadsheet.xlsx不会导出到文件系统.
Whilst I have found a free tool which outputs the documents as per above, what it doesn't do it iterate through any sub sites, i.e. http://webapp01/site01/subsite01/shared%20Documents/spreadsheet.xlsx does not get exported to the file system.
有人可以帮助我满足这一要求吗?
Can anyone help me in satisfying this requirement?
非常感谢.
敬上,凯夫
推荐答案
在PowerShell脚本中,我们需要使用SPSite.AllWebs方法来获取网站中包含的所有网站的集合.集合,包括顶级网站及其子网站.然后, 检索每个站点的所有库.
In the PowerShell script, we need to use SPSite.AllWebs method to get the collection of all Web sites that are contained within the site collection, including the top-level site and its subsites. Then, retrieve all libraries for each site.
这篇关于将文档导出到文件系统的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!