Monday, March 9, 2020

How to find out Current Usage per user in One-drive using Powershell

Run the below power shell commands , it will give you the storage information and set storage quota.

Get current usage per user in Onedrive

Get-SPOSite 
-IncludePersonalSite $true
-Limit all 
-Filter "url - like '-my-sharepoint.com/personal/'"
| Select url, StorageUsageCurrent
| Sort-Object StorageUsageCurrent  -Descending
| Format-Table -wrap -Autosize

Set Onedrive storage limit to 1TB (1024 GB) using powershell 


Set-SPOTenant - OneDriveStorageQuira 1048576

Set Onedrive storage quota for specific user

Set-SPOSite
-Identity https://healthtest-my.sharepoint.com/personal/venkat_healthtest_onmicrosoft_com
-StorageQuota 1024
Reset storage quota for specific user


Set-SPOSite
-Identity https://healthtest-my.sharepoint.com/personal/venkat_healthtest_onmicrosoft_com
-StorageQuotaReset

No comments:

Post a Comment