Exporting a List of Document Types Across a SharePoint Tenant

Mark S 0 Reputation points
2024-08-28T09:20:57.92+00:00

Is it possible to generate a report that displays all document types stored in SharePoint across all sites within the tenant? I have already done this on a site-by-site basis, but I would like to know if there's a way to get a comprehensive list of file types either through the SharePoint Online interface or using PowerShell.

SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
3,042 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,592 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Yanli Jiang - MSFT 26,766 Reputation points Microsoft Vendor
    2024-08-29T08:45:05.82+00:00

    Hi @Mark S

    It looks like you already have a working PowerShell script, you can add a loop statement such as foreach($site in $sites) in it to get the report of the entire tenant. Alternatively, you can post the PowerShell script here and I will help you modify it.

    Good day!


    If the answer is helpful, please click "Accept as Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    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.


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.