<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Get-OneDriveUsage Archives - the Sysadmin Channel</title>
	<atom:link href="https://thesysadminchannel.com/tag/get-onedriveusage/feed/" rel="self" type="application/rss+xml" />
	<link>https://thesysadminchannel.com/tag/get-onedriveusage/</link>
	<description>Documenting My Life as a System Administrator</description>
	<lastBuildDate>Tue, 29 Dec 2020 21:45:56 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.2</generator>
<site xmlns="com-wordpress:feed-additions:1">144174110</site>	<item>
		<title>Check OneDrive Usage Per User In Office 365</title>
		<link>https://thesysadminchannel.com/check-onedrive-usage-for-users-in-office-365/</link>
					<comments>https://thesysadminchannel.com/check-onedrive-usage-for-users-in-office-365/#respond</comments>
		
		<dc:creator><![CDATA[Paul Contreras]]></dc:creator>
		<pubDate>Sun, 27 Sep 2020 05:22:13 +0000</pubDate>
				<category><![CDATA[OneDrive]]></category>
		<category><![CDATA[Powershell]]></category>
		<category><![CDATA[Check OneDrive Storage Usage In Office 365]]></category>
		<category><![CDATA[Get-OneDriveUsage]]></category>
		<category><![CDATA[how to check onedrive storage office 365 powershell]]></category>
		<category><![CDATA[office 365 check onedrive usage powershell]]></category>
		<category><![CDATA[onedrive usage report per user]]></category>
		<guid isPermaLink="false">https://thesysadminchannel.com/?p=1949</guid>

					<description><![CDATA[<p>In this article I&#8217;m going to show you how to check OneDrive usage for users in Office 365. Since this task is really straight forward I&#8217;m going to share how to find it in the GUI as well as getting&#8230; <a href="https://thesysadminchannel.com/check-onedrive-usage-for-users-in-office-365/" class="more-link">Continue Reading <span class="meta-nav">&#8594;</span></a></p>
<p>The post <a href="https://thesysadminchannel.com/check-onedrive-usage-for-users-in-office-365/">Check OneDrive Usage Per User In Office 365</a> appeared first on <a href="https://thesysadminchannel.com">the Sysadmin Channel</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>In this article I&#8217;m going to show you how to <strong>check OneDrive usage</strong> for users in Office 365. Since this task is really straight forward I&#8217;m going to share how to find it in the GUI as well as getting that information in Powershell.</p>
<h2>Office 365 Requirements</h2>
<p>Here is the small list of requirements needed: </p>
<ul>
<li><strong>Global Admin</strong> Rights &#8211; or &#8211;</li>
<li><strong>SharePoint Administrator</strong> Rights</li>
<li>The user must be licensed for OneDrive (typically an E3 license is used)</li>
</ul>
<p>&nbsp;<br />
Behind the scenes, OneDrive is essentially an extension of SharePoint so you will need SharePoint admin rights at a minimum to check the usage. In my case, I have global admin rights temporarily assigned.<br />
<a href="https://thesysadminchannel.com/wp-content/uploads/2020/12/Check-OneDrive-Usage-Global-Admin-Rights-1.png" target="_blank" rel="noopener noreferrer"><img fetchpriority="high" decoding="async" src="https://thesysadminchannel.com/wp-content/uploads/2020/12/Check-OneDrive-Usage-Global-Admin-Rights-1.png" alt="Check OneDrive Usage Global Admin Rights" width="795" height="287" class="aligncenter size-full wp-image-2639" srcset="https://thesysadminchannel.com/wp-content/uploads/2020/12/Check-OneDrive-Usage-Global-Admin-Rights-1.png?v=1609054116 795w, https://thesysadminchannel.com/wp-content/uploads/2020/12/Check-OneDrive-Usage-Global-Admin-Rights-1-768x277.png?v=1609054116 768w" sizes="(max-width: 795px) 100vw, 795px" /></a></p>
<p>&nbsp;</p>
<h2>Check OneDrive Usage &#8211; GUI Method</h2>
<p>If you want to check a single user it&#8217;s really quick and easy to check their usage in the GUI. Here&#8217;s how. </p>
<ul>
<li>Navigate to the admin portal (<a href="https://admin.microsoft.com/AdminPortal/Home#/homepage" rel="noopener noreferrer" target="_blank">https://admin.microsoft.com/</a>)</li>
<li>Search for the user in the search bar</li>
<li>Click on the OneDrive tab to see their full stats</li>
</ul>
<p><a href="https://thesysadminchannel.com/wp-content/uploads/2020/12/Check-OneDrive-Usage-Gui-Method.png" target="_blank" rel="noopener noreferrer"><img decoding="async" src="https://thesysadminchannel.com/wp-content/uploads/2020/12/Check-OneDrive-Usage-Gui-Method.png" alt="Check OneDrive Usage - Gui Method" width="1422" height="713" class="aligncenter size-full wp-image-2641" srcset="https://thesysadminchannel.com/wp-content/uploads/2020/12/Check-OneDrive-Usage-Gui-Method.png?v=1609054999 1422w, https://thesysadminchannel.com/wp-content/uploads/2020/12/Check-OneDrive-Usage-Gui-Method-1024x513.png?v=1609054999 1024w, https://thesysadminchannel.com/wp-content/uploads/2020/12/Check-OneDrive-Usage-Gui-Method-768x385.png?v=1609054999 768w" sizes="(max-width: 1422px) 100vw, 1422px" /></a></p>
<h2>Check OneDrive Usage &#8211; Powershell Method</h2>
<p>I&#8217;ll admit, in this case the GUI method is a little bit easier. However, if you want to check users in bulk then Powershell is absolutely the best way.  Let&#8217;s go over how to do that. You&#8217;ll need the <strong>Microsoft.Online.SharePoint.PowerShell</strong> Powershell Module installed.</p>
<ul>
<li>Type: <strong>Import-Module Microsoft.Online.SharePoint.PowerShell</strong></li>
<li>Type: $adminURL = &#8216;<strong>https://&lt;<em>YourTenantName</em>&gt;-admin.sharepoint.com</strong>&#8216; (e.g https://thesysadminchannel-admin.sharepoint.com)</li>
<li>Type: <strong>Connect-SPOService -Url $adminURL</strong></li>
</ul>
<p><a href="https://thesysadminchannel.com/wp-content/uploads/2020/12/Connect-SPOService-Powershell.png" target="_blank" rel="noopener noreferrer"><img decoding="async" src="https://thesysadminchannel.com/wp-content/uploads/2020/12/Connect-SPOService-Powershell.png" alt="Connect-SPOService Powershell" width="881" height="288" class="aligncenter size-full wp-image-2645" srcset="https://thesysadminchannel.com/wp-content/uploads/2020/12/Connect-SPOService-Powershell.png?v=1609056502 881w, https://thesysadminchannel.com/wp-content/uploads/2020/12/Connect-SPOService-Powershell-768x251.png?v=1609056502 768w" sizes="(max-width: 881px) 100vw, 881px" /></a><br />
&nbsp;</p>
<p>Now that we&#8217;re connected to SharePoint Online via Powershell, we can access those OneDrive cmdlets and properties.</p>
<ul>
<li>Type: <strong>$URL = &#8216;https://&lt;YourTenantName&gt;-my.sharepoint.com/personal/&lt;username&gt;_&lt;DomainName&gt;_com&#8217;</strong></li>
<li>Example would be: $URL = &#8216;https://thesysadminchannel-my.sharepoint.com/personal/pcontreras_thesysadminchannel_com&#8217;</li>
<li>Type: <strong>Get-SPOSite -Identity $URL | select Owner, StorageUsageCurrent, StorageQuota, Status</strong></li>
</ul>
<p><a href="https://thesysadminchannel.com/wp-content/uploads/2020/12/Check-OneDrive-Usage-Powershell-Method.png" target="_blank" rel="noopener noreferrer"><img decoding="async" src="https://thesysadminchannel.com/wp-content/uploads/2020/12/Check-OneDrive-Usage-Powershell-Method.png" alt="Check OneDrive Usage - Powershell Method" width="1024" height="374" class="aligncenter size-full wp-image-2647" srcset="https://thesysadminchannel.com/wp-content/uploads/2020/12/Check-OneDrive-Usage-Powershell-Method.png?v=1609058518 1024w, https://thesysadminchannel.com/wp-content/uploads/2020/12/Check-OneDrive-Usage-Powershell-Method-768x281.png?v=1609058518 768w" sizes="(max-width: 1024px) 100vw, 1024px" /></a></p>
<p>&nbsp;</p>
<h2>Check Multiple Users with Powershell Script</h2>
<p>I wrote this quick script so you can pass on multiple usernames and have it output in a clean Powershell format we all know and love. It will also convert the default output from MB to GB.<br />
&nbsp;</p>
<pre class="brush: powershell; title: ; notranslate">

Function Get-OneDriveUsage {
&lt;#
.SYNOPSIS
    This will check OneDrive current usage and total limit.

.NOTES
    Name: Get-OneDriveUsage
    Author: theSysadminChannel
    Version: 1.0
    DateCreated: 2020-Sep-20

.LINK
    https://thesysadminchannel.com/check-onedrive-usage-for-users-in-office-365 -
#&gt;

    [CmdletBinding()]
    param(
        [Parameter(
            Mandatory=$false,
            ValueFromPipeline=$true,
            ValueFromPipelineByPropertyName=$true,
            Position=0)]

        [string[]]  $SamAccountName = $env:USERNAME

    )

    BEGIN {
        $TenantName = 'thesysadminchannel'
        $DomainName = 'thesysadminchannel'
    }

    PROCESS {
        foreach ($User in $SamAccountName) {
            try {
                $URL = &quot;https://$($TenantName)-my.sharepoint.com/personal/$($User)_$($DomainName)_com&quot;
                $Stats = Get-SPOSite -Identity $URL | select Owner, StorageUsageCurrent, StorageQuota, Status
                [PSCustomObject]@{
                    Owner          = $Stats.Owner
                    CurrentUsageGB = &quot;{0:F3}&quot; -f ($Stats.StorageUsageCurrent / 1024) -as [decimal]
                    TotalStorageGB = &quot;{0:F0}&quot; -f ($Stats.StorageQuota / 1024) -as [int]
                    Status         = $Stats.Status
                }

            } catch {
                Write-Error $_.Exception.Message

            }
        }
    }

    END {}
}

</pre>
<h4>Example: Get-OneDriveUsage -SamAccountName gabby, pcontreras</h4>
<p><a href="https://thesysadminchannel.com/wp-content/uploads/2020/12/Get-OneDriveUsage-samaccountname.png" target="_blank" rel="noopener noreferrer"><img decoding="async" src="https://thesysadminchannel.com/wp-content/uploads/2020/12/Get-OneDriveUsage-samaccountname.png" alt="Get-OneDriveUsage -samaccountname" width="861" height="309" class="aligncenter size-full wp-image-2650" srcset="https://thesysadminchannel.com/wp-content/uploads/2020/12/Get-OneDriveUsage-samaccountname.png?v=1609060988 861w, https://thesysadminchannel.com/wp-content/uploads/2020/12/Get-OneDriveUsage-samaccountname-768x276.png?v=1609060988 768w" sizes="(max-width: 861px) 100vw, 861px" /></a><br />
&nbsp;</p>
<p>Hopefully you were able to check the Onedrive usage for the users in your environment.  As I was writing this article I decided to write the Get-OneDriveUsage script as well because I didn&#8217;t like the fact that it output the numbers in MB and not GB. </p>
<p>Now using that script, you can check in bulk or on the fly as needed.  Anyway, if you like to see more posts like this one, be sure to check our <a href="https://thesysadminchannel.com/office365/onedrive/" rel="noopener noreferrer" target="_blank">OneDrive Category</a>. While you&#8217;re at it, don&#8217;t forget to stop by our <a href="https://www.youtube.com/c/theSysadminChannel" rel="noopener noreferrer" target="_blank">Youtube Channel</a> for awesome sysadmin video content.</p>
<p>The post <a href="https://thesysadminchannel.com/check-onedrive-usage-for-users-in-office-365/">Check OneDrive Usage Per User In Office 365</a> appeared first on <a href="https://thesysadminchannel.com">the Sysadmin Channel</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://thesysadminchannel.com/check-onedrive-usage-for-users-in-office-365/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1949</post-id>	</item>
	</channel>
</rss>
