Hello there! Today, I want to share with you a step-by-step guide on how to check your OneDrive storage in Office 365 using PowerShell. As someone who frequently uses Office 365, I find it incredibly useful to have a clear understanding of my storage usage. So, let’s dive in and see how we can do that!
Before we begin, make sure you have the following:
- Access to an Office 365 account with administrative privileges
- PowerShell installed on your computer
- Connection to the internet
Step 1: Open PowerShell
To get started, open PowerShell on your computer. You can do this by searching for “PowerShell” in the start menu and clicking on the “Windows PowerShell” app.
Step 2: Connect to Office 365
Once PowerShell is open, we need to establish a connection to Office 365. Run the following command:
This command will prompt you to enter your Office 365 admin credentials. Provide the necessary information and press Enter.
Step 3: Check OneDrive Storage
Now that we are connected, let’s check the storage usage for a specific user. Run the following command:
This will give you the current storage usage for the specified user’s OneDrive in Office 365.
Step 4: Interpret the Results
The output from the previous command will provide you with the storage usage in bytes. To make it more readable, you can convert it to a more understandable format. Here’s an example:
$storageUsage = Get-SPOSite -Identity
$storageUsageInGB = $storageUsage / 1GB
Write-Host "The current storage usage for
This will give you the storage usage in Gigabytes (GB).
By following the steps outlined above, you can easily check your OneDrive storage in Office 365 using PowerShell. It’s a quick and efficient way to stay on top of your storage usage. So the next time you want to keep track of how much storage you have left, give this method a try!