Powershell脚本,用于计算网站集中列表和库项目的数量 [英] Powershell script to count number of list and library items in site collection

查看:93
本文介绍了Powershell脚本,用于计算网站集中列表和库项目的数量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在识别2010 SP环境中的大型列表,并且我尝试编写代码以输出网站集中的列表项总数。  我正在使用下面的代码,但它只显示标题和网址的列数据。 
我需要添加什么才能计算每个共享点列表和库中的项目数? 

We are identifying large lists in our 2010 SP environment and I'm attempting to write code to output the total number of list items in a site collection.   I'm using the code below but it only displays column data for title and url.  What do I need to add so it can count the number of items in each sharepoint list and library? 

Get-SPSite -WebApplication http:// sharepoint -Limit All |

  选择-ExpandProperty AllWebs |

  选择-ExpandProperty列表|

  选择ParentWebUrl,标题

我正在引用
http://sharepointpromag.com/sharepoint/windows-powershell-scripts-sharepoint-info-files -pagesweb-parts

I'm referencing http://sharepointpromag.com/sharepoint/windows-powershell-scripts-sharepoint-info-files-pagesweb-parts

推荐答案

看看下面的链接

Have a look at below link

< a href ="http://blog.morg.nl/2011/09/count-all-lists-and-list-items-in-a-site-collection/"> http://blog.morg.nl/ 2011/09 / count-all-lists-and-list-items-in-a-site-collection /


ListsInfo = @ {}
ListsInfo = @{}


TotalItems = 0
TotalItems = 0


这篇关于Powershell脚本,用于计算网站集中列表和库项目的数量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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