PowerShell:为我的所有存档列表生成报告 [英] PowerShell : build report for all my archive lists
问题描述
嗨
我正在尝试学习PowerShell:D
I'm trying to learn PowerShell :D
请举例说明如何构建报告 他们 具有相同的字段名称(创建者,创建日期,完成日期).
Please give example on how to build report for all my archive lists. They have the same field name (Create By, Create Date, Completed Date).
报告< o:p></o:p>
推荐答案
在某些情况下,我们可以使用CAML查询来获取商品,然后将日期保存到CSV文件中.
We can get the items using CAML query base on some conditions, then save the date into a CSV file.
要获取项目计数,我们可以使用SPListItemCollection . Count属性.
To get count of items, we can using SPListItemCollection.Count property.
以下文章供您参考:
如何通过PowerShell进行CAML查询
https://gallery.technet.microsoft.com/office /How-to-a-CAML-Query-6f5260cf
使用PowerShell将SharePoint列表项导出为CSV
http: //www.sharepointdiary.com/2013/04/export-sharepoint-list-items-to-csv-using-powershell.html#ixzz4tfe6gjQL
Export SharePoint List Items to CSV using PowerShell
http://www.sharepointdiary.com/2013/04/export-sharepoint-list-items-to-csv-using-powershell.html#ixzz4tfe6gjQL
最好的问候,
丹尼斯
这篇关于PowerShell:为我的所有存档列表生成报告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!