Hi there! Today, I would like to provide you with a detailed tutorial on how to use PowerShell to view your OneDrive storage in Office 365. As an avid user of Office 365, I appreciate being able to easily track my storage usage. Let’s explore the steps to do so!
Prerequisites
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:
Connect-MsolService
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:
Get-SPOSite -Identity
Replace
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).
Conclusion
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!