My Articles Support Center

Contact Us

Increase OneDrive for Business Storage up to 5TB

The default storage space for each user's OneDrive user is 1 TB. If you have one of the following Office 365 plans, you can increase the storage up to 5 TB:


To set the default OneDrive storage space

  1. Open the OneDrive admin center and click the Storage tab.


image

    2. Enter the default storage amount (in GB) in the Default storage box, and then click Save.

This storage space setting applies to all new and existing users for whom you haven't set specific storage limits. To change the storage space for specific users, you need to use Microsoft PowerShell. To check if you've set specific storage limits for a user, run this PowerShell command:


$r=Get-SPOSite -Identity https://superdomain-my.sharepoint.com/personal/noadmin_superdomain_onmicrosoft_com -Detailed $r.StorageQuotaType Default


If the storage type is set to UserSpecific instead of Default, you'll need to use PowerShell to change the storage space manually.

The below PowerShell script will increase the OneDrive for Business Storage Space up to 5 TB

You will be prompt to provide:

  1. User email address, such as test@litware.com
  2. Storage size in MB <1TB = 1048576 MB, 5242880 for 5 TB>

Prerrequisites:

Module:

$credential = Get-Credential 
Import-Module MsOnline 
Connect-MsolService -Credential $credential
Import-Module Microsoft.Online.SharePoint.PowerShell -DisableNameChecking
$InitialDomain = Get-MsolDomain | Where-Object {$_.IsInitial -eq $true}
$user= Read-Host "Enter user's email address, such as test@litware.com"
$storageSize= Read-Host "Enter storage size in binary format <1 TB = 1048576 MB>, 5242880 for 5 TB "
$SharePointAdminURL = "https://$($InitialDomain.Name.Split(".")[0])-admin.sharepoint.com"
$UserUnderscore $user-replace "[^a-zA-Z0-9]""_"
$OneDriveURL = "https://$($InitialDomain.Name.Split(".")[0])-my.sharepoint.com/personal/$UserUnderscore"
Connect-SPOService -Url $SharePointAdminURL -credential $credential
#To get the current storage run:
Get-SPOSite -Identity $OneDriveURL | select StorageQuota
#To change the Storage Space run:
Set-SPOSite -Identity $OneDriveURL  -StorageQuota $storageSize
#To verify the storage space has been modified run:
Get-SPOSite -Identity $OneDriveURL  | select StorageQuota
Write-Host "`n You have increased your storage space to $storageSize MB" -ForegroundColor Green


For info about using PowerShell to connect to SharePoint Online, see Connect to all Office 365 services in a single Windows PowerShell window

Notes: