How to set OneDrive for Business Storage Quota using PowerShell

Even though OneDrive for Business comes with 1TB of personal storage (by default) for every Office 365 user,
several organizations have requested the ability to set smaller storage quota to limit the amount of data stored
for information protection reasons and also to limit the OneDrive content from occupying local drive during sync
operation. In this blog, we share the steps for setting OneDrive storage quota using PowerShell.

Before starting the process, download and install the SharePoint Online Management Shell from this link and execute
the following PowerShell Scripts as Global administrator in the SharePoint Online Management Shell by connecting to SharePoint Online.

Also ensure that the SharePoint online setting “Site Collection Storage Management” is set as Manual.