Generate a report for OneDrive users exceeding 500GB

MKHULEKO THABISO NHLAMBO 40 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.

Microsoft 365 and Office | SharePoint | Development
Microsoft 365 and Office | OneDrive | For business | Windows
{count} votes

Accepted answer
  1. AllenXu-MSFT 24,951 Reputation points Moderator
    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

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.