How to Check Onedrive Storage Usage

OneDrive is a Microsoft cloud service that offers a storage space for your personal files. For most subscription plans, the default storage space for each user’s OneDrive is 1TB, with the potential to increase it to 5TB based on your Microsoft 365 subscription plan.

When users in your organization are already using OneDrive to store data, they may want to check how much storage space is currently consumed. If the storage limit is exceeded, you may receive an error message, and further data storage may be restricted.

Regularly monitor your OneDrive usage to ensure it has enough space for your current data and future growth.

Check OneDrive Storage Usage as a Standard User (non-administrator)

You can check your own OneDrive Storage Usage to confirm how much space is free and how much is utilized. Since you are checking your own OneDrive Storage Usage, you do not need admin rights. Let’s check the steps:

  1. Log in to https://portal.office.com.
  2. Click on the square dots in the left-hand corner to reveal all Microsoft 365 Apps.
Check OneDrive Storage Usage as a Standard User
Check OneDrive Storage Usage as a Standard User
  1. Click on the OneDrive app Icon.
Check OneDrive Storage Usage as a Standard User
Check OneDrive Storage Usage as a Standard User
  1. On the top right-hand side, you will find a Settings icon. Click on it and then click on OneDrive settings.
Check OneDrive Storage Usage as a Standard User
Check OneDrive Storage Usage as a Standard User
  1. Click on “More settings” on the OneDrive settings page, and then select “Storage Metrics“.
Check OneDrive Storage Usage as a Standard User
Check OneDrive Storage Usage as a Standard User
  1. The Storage Metrics page will show you how much storage is being consumed by a user. Since documents are stored in the Document Library, look for the Documents folder in the OneDrive site collection to find out how much space is being used.
  1. You can also check from the top right-hand corner to see how much space has been used. In the below screenshot, it shows 1024.00 GB free out of 1024.00 GB. There is a negligible amount of space consumed, and it mostly does not contain any data. Your displayed value may vary depending on your usage.
OneDrive Storage Metrics page showing Documents library usage
Check OneDrive Storage Usage as a Standard User

Check OneDrive Storage Usage as an Administrator

In the previous section of this blog post, we discussed how an end user can check OneDrive space usage. However, if you are a Global Administrator or SharePoint administrator, you can check OneDrive space usage for any user in your organization.

There are two ways to check OneDrive Storage Usage. The first method is to use the Microsoft 365 admin center, and the second method involves using PowerShell. Let’s explore both of these methods:

Method 1 – Using Microsoft 365 Admin Center

You can easily check any user’s OneDrive storage utilization by following the steps below:

  1. Log in to the Microsoft 365 admin center.
  2. Go to Users and click on Active Users on the left-hand side pane.
  3. Click on any user to open a pane on the right-hand side.
  4. Navigate to the OneDrive tab to check the storage used.
Check OneDrive Storage Usage as an Administrator
Check OneDrive Storage Usage as an Administrator

Method 2 – Checking OneDrive Storage Usage Using Powershell

As we saw, it’s easier to check OneDrive storage usage for any user using the Microsoft 365 admin center. However, it’s even quicker to use PowerShell commands to check OneDrive storage consumption for each user in your organization.

You can run the command against one user or all users. Let’s check the steps:

  1. Download and Install SharePoint Online Management Shell on your device.
  2. Obtain the admin URL of your SharePoint organization.
  3. Connect to SharePoint Online using the Connect-SPOService cmdlet.
  4. Retrieve the user’s OneDrive URL.
  5. Utilize the Get-SPOSite cmdlet to output the user’s OneDrive space usage.

Step 1 – Install Sharepoint Online Powershell Module

You can either install SharePoint Online Management Shell or use commands directly in the PowerShell console to install the SharePoint Online PowerShell Module. Please refer to the step-by-step guide that can help you install the SharePoint Online PowerShell module on your computer.

Step 2 – Get Sharepoint Online Admin URL

Retrieve the admin URL of your SharePoint organization. You can find the URL in the browser’s address bar of the SharePoint admin portal. For my organization, it’s https://mylab000-admin.sharepoint.com.

Get Sharepoint Online Admin URL
Get Sharepoint Online Admin URL

Step 3 – Connect to Sharepoint Online

There are two ways to connect to SharePoint Online. The first one is to use the Connect-SPOService cmdlet, and the second one is to use the Connect-PnPOnline cmdlet. We will be utilizing the Connect-SPOService cmdlet. If you want to learn about both these methods in more detail, please refer to the blog post: How to Connect to SharePoint Online Using PowerShell.

  1. Connect to Sharepoint Online
    • Use the following commands to Connect to SharePoint online. Replace the URL with your organization’s Sharepoint Admin URL.

Connect to Sharepoint Online

Connect-SPOService -Url https://mylab000-admin.sharepoint.com -credential [email protected]
  1. Get Users OneDrive URL
    • To obtain the OneDrive URLs of each user, you can use the following PowerShell code. Copy the code and paste it into the PowerShell console. It will prompt for the SharePoint admin URL and then generate the output in the OneDriveSites.log file on the desktop.

Get users OneDrive URL

$TenantUrl = Read-Host "Enter the SharePoint admin center URL"
$LogFile = [Environment]::GetFolderPath("Desktop") + "\OneDriveSites.log"
Connect-SPOService -Url $TenantUrl
Get-SPOSite -IncludePersonalSite $true -Limit all -Filter "Url -like '-my.sharepoint.com/personal/'" | Select -ExpandProperty Url | Out-File $LogFile -Force
Write-Host "Done! File saved as $($LogFile)."

This is what the output of the above PowerShell commands looks like:

Get users OneDrive URL using Powershell
Get users OneDrive URL using Powershell
  1. Fetch User’s OneDrive Space Usage
    • The next step is to use the Get-SPOSite PowerShell cmdlet to output a user’s OneDrive usage by using that specific user’s OneDrive URL.

Get Users OneDrive space usage

Get-SPOSite -Identity https://mylab000-my.sharepoint.com/personal/meganb_techpress_net | select Owner, @{Label='StorageUsage';E={($_.StorageUsageCurrent/1024)}}, @{Label='StorageQuota';E={($_.StorageQuota/1024)}}, Status, @{label='FreeSpace%';expression={($_.StorageUsageCurrent / $_.StorageQuota)*100}} | ft -AutoSize
Get Users OneDrive space usage using Powershell
Get Users OneDrive space usage using Powershell

Conclusion

It’s useful to monitor your OneDrive usage regularly to ensure it does not exceed the set quota of 1TB. In some cases, users may have a 5TB storage option. You can check the allocated quota for your account by accessing Storage Metrics under OneDrive Settings. This setting is handy to keep track of, and you can also bookmark the Storage Metrics page for faster access in the future.

Leave a Comment

Discover more from TechPress

Subscribe now to keep reading and get access to the full archive.

Continue reading