{"id":964,"date":"2017-05-31T15:26:17","date_gmt":"2017-05-31T04:26:17","guid":{"rendered":"https:\/\/4it.com.au\/kb\/?post_type=article&#038;p=964"},"modified":"2017-05-31T15:26:17","modified_gmt":"2017-05-31T04:26:17","slug":"list-mailbox-sizes-office-365-using-windows-powershell","status":"publish","type":"article","link":"https:\/\/4it.com.au\/kb\/article\/list-mailbox-sizes-office-365-using-windows-powershell\/","title":{"rendered":"How to List Mailbox Sizes on Office 365 using Windows Powershell"},"content":{"rendered":"<p>When performing this task make sure you are using the standard Windows\u00a0Powershell, not the Microsoft Online Services Module version. \u00a0This article assumes you are already familiar with Windows Powershell<\/p>\n<h2>Step 1<\/h2>\n<p>Open Windows Powershell as Administrator<\/p>\n<h2>Step 2<\/h2>\n<p>Enter the following commands in to the Powershell Command Prompt<\/p>\n<p>Set-ExecutionPolicy RemoteSigned <strong>(only needs to be run the first time you do this)<\/strong><\/p>\n<p>$LiveCred = Get-Credential <strong>(Enter your Office 365 Administrator Credentials in the box that pops up)<\/strong><\/p>\n<p>$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https:\/\/ps.outlook.com\/powershell\/ -Credential $LiveCred -Authentication Basic \u2013AllowRedirection<\/p>\n<p>Import-PSSession $Session<\/p>\n<p>get-mailbox | get-mailboxstatistics | ft displayname, totalitemsize<\/p>\n<h2>Step 3<\/h2>\n<p>When finished enter the following command to close the session<\/p>\n<p>Remove-PSSession $Session<\/p>\n<div style='text-align:left' class='yasr-auto-insert-visitor'><\/div>","protected":false},"excerpt":{"rendered":"<p>When performing this task make sure you are using the standard Windows\u00a0Powershell, not the Microsoft Online Services Module version. \u00a0This article assumes you are already familiar with Windows Powershell Step 1 Open Windows Powershell as Administrator Step 2 Enter the following commands in to the Powershell Command Prompt Set-ExecutionPolicy RemoteSigned (only needs to be run [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","format":"standard","article-category":[7],"article-tag":[729,730],"class_list":["post-964","article","type-article","status-publish","format-standard","hentry","article-category-office-365","article-tag-list-mailbox-size-office-365","article-tag-powershell-office-365-mailbox-list-size"],"yasr_visitor_votes":{"stars_attributes":{"read_only":false,"span_bottom":false},"number_of_votes":3,"sum_votes":9},"_links":{"self":[{"href":"https:\/\/4it.com.au\/kb\/wp-json\/wp\/v2\/article\/964","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/4it.com.au\/kb\/wp-json\/wp\/v2\/article"}],"about":[{"href":"https:\/\/4it.com.au\/kb\/wp-json\/wp\/v2\/types\/article"}],"author":[{"embeddable":true,"href":"https:\/\/4it.com.au\/kb\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/4it.com.au\/kb\/wp-json\/wp\/v2\/comments?post=964"}],"version-history":[{"count":0,"href":"https:\/\/4it.com.au\/kb\/wp-json\/wp\/v2\/article\/964\/revisions"}],"wp:attachment":[{"href":"https:\/\/4it.com.au\/kb\/wp-json\/wp\/v2\/media?parent=964"}],"wp:term":[{"taxonomy":"article-category","embeddable":true,"href":"https:\/\/4it.com.au\/kb\/wp-json\/wp\/v2\/article-category?post=964"},{"taxonomy":"article-tag","embeddable":true,"href":"https:\/\/4it.com.au\/kb\/wp-json\/wp\/v2\/article-tag?post=964"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}