Powershell batch generation of SharePoint usage report

Terry Chan 56 Reputation points
2021-01-28T09:07:23.54+00:00

Is it possible to get the usage report by powershell batch processing to get all the site collection reports instead of going to read the report in individual site collection?
https://www.spguides.com/sharepoint-2016-usage-analytics/

SharePoint Server Management
SharePoint Server Management
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Management: The act or process of organizing, handling, directing or controlling something.
2,978 questions
0 comments No comments
{count} votes

Accepted answer
  1. Allen Xu_MSFT 13,831 Reputation points
    2021-01-29T08:15:37.997+00:00

    Hi @Terry Chan ,

    For usage report is an internal function and we don't have an interface to directly download usage report from SharePoint, it is impossible to get usage reports in batches. You need to do it manually. As a workaround, you can loop all web applications and get all the site collections in the web applications, then export usage data to a .CSV file.

    References:
    Loop web applications and get site collections:
    https://sharepointpixels.wordpress.com/2016/06/24/sharepoint-iterate-through-all-web-applications-site-collections-sites-lists-and-list-items-with-powershell/

    Get usage data in SharePoint:
    https://archive.codeplex.com/?p=sp13usagemonthlystats


    If an Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.