Generate a report for OneDrive users exceeding 500GB

MKHULEKO THABISO NHLAMBO 20 Reputation points
2025-02-03T07:32:53.8233333+00:00

Please help me with a powershell script that i can use to get a report on OneDrive users exceeding 500GB of space used.

OneDrive
OneDrive
A Microsoft file hosting and synchronization service.
1,294 questions
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,249 questions
{count} votes

1 answer

Sort by: Most helpful
  1. AllenXu-MSFT 23,421 Reputation points Microsoft Vendor
    2025-02-04T06:27:28.3+00:00

    Hi @MKHULEKO THABISO NHLAMBO,

    The Get-OneDriveSizeReport.ps1 PowerShell script exports all Microsoft 365 users OneDrive sizes to a CSV file. Find the file OneDriveSizeReport.csv in the path C:\temp.

    Open the CSV file with your favorite application. In our example, it’s Microsoft Excel.

    User's image

    You can filter in the CSV file by UsedGB field greater than 500.

    To run the script, you need to Install Microsoft Graph PowerShell first. Please take a reference to this step-to-step article: Export OneDrive usage report with PowerShell script.


    If the answer is helpful, please click "Accept 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.

    0 comments No comments

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.