如何使用Powershell在SharePoint网站中的一个文档中获取文档大小和页数 [英] How to get the Document size and numbe of pages in one document in sharepoint site using Powershell

查看:153
本文介绍了如何使用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:

https://sharepoint.stackexchange .com/questions/26213/calculate-number-of-pages-in-the-document-in-document-library

最诚挚的问候,

Grace Wang

Grace Wang


这篇关于如何使用Powershell在SharePoint网站中的一个文档中获取文档大小和页数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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