Sunday, May 3, 2020

Set Onedrive Quota from file or AD Group

Lets do a magic this time with Onedrive quota.
Requirement:
We have updated the default quota for all E3 Onedrive sites up to max limit that Microsoft allows that is 5 TB.
We thought that onedrive for all users will update with new quota automatically but it was not the case, on the contrary in our small tenant it happened automatically.
So here is the Powershell magic we have created for updating our 35000 users onedrive as 5TB quota.
All our E3 users are licensed based on one AD group so we created the script based on group but for broader use I have expanded it with option of text file as well.
Download the Script from below link:
Prerequisites:
When you will run this script it will ask you for below parameters:
If you will answer No for run from file option then you need to enter name of text file like onedrive.txt  which is inside the script folder and have one drive urls.
Example:
Just press enter and Script will start processing the Onedrive sites to set the appropriate Quotas.
Thanks for reading and downloading..
Tech Wizard

No comments:

Post a Comment