如何使用Powershell在SharePoint网站中的一个文档中获取文档大小和页数
我有一个记录中心网站集,并且有许多文档库,数据酶的大小为200 GB,
I have a record center site collection and has many doucment libraries and dataase size is 200 GB,
用户将在这些文档中上传pdf文档和某些页面
users will upload the pdf documnets and some pages in these documents
在这里,我希望获得以下统计信息:
here i want to ge the below stats:
1.每人平均页数文档.大于10mb的文档和小于10mb的文档
2.每页的平均页面大小文档和平均文档大小
我们可以直接编写SQL查询还是必须使用任何Powershell查询吗?
can we get directly writing SQL Query or we have to use any powershell query ?
adil
您好adilahmed,
Hi adilahmed,
您可以使用下面类似文章中提到的PowerShell命令来获取平均文件大小:
You can use the PowerShell command mentioned in the similar post below to get average file size:
https://sharepoint.stackexchange .com/questions/12448/how-can-i-query-average-document-size-on-site
并编写代码以获取文件中的页数,这是一个供您参考的演示:
And write code to get the number of pages in the file, here is a demo for your reference:
最诚挚的问候,
Grace Wang
Grace Wang