问题描述
我试图获取我的SharePoint网站中所有文档的列表,所有者和最后修改日期.
I am trying to get a list of all documents within my SharePoint Site, owner and date last modified.
这是一个SharePoint 2010 Enterprise
环境.
这是一个有很多子站点的站点.
It's a site which has many subsites.
我尝试过的所有解决方案仅允许我在该特定站点级别而不是子站点获取文档.
All solutions I have tried only allow me to get documents at that specific site level and not subsites.
我必须承认,我可以通过直接查询SQL DB来获取所需的信息,但是不想走这条路,因为MS不支持它
I must admit, I can get the required information by querying the SQL DB directly but don't want to go down this path, as it's unsupported by MS
任何帮助将不胜感激.
推荐答案
使用Powershell可以很容易地获得此信息,只需遍历所有子站点和文档库即可.
You can get this information quite easy by using Powershell, you just need to iterate through all subsites and document libraries.
看看这些页面:
http://blog.falchionconsulting.com/index.php/2010/08/getting-an-inventory-of-all-sharepoint-documents-using-windows-powershell/(这几乎完全是您所需要的,不需要一些额外的行).
http://blog.falchionconsulting.com/index.php/2010/08/getting-an-inventory-of-all-sharepoint-documents-using-windows-powershell/(This is almost exactly what you require, there are a few extra lines that you don't need).
http://www .sharepoint-journey.com/get-all-document-libraries-in-a-site-collection.html
这篇关于整个Sharepoint网站中的文档列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!