-----provide ad\exchange\lync\sharepoint\crm\sc\o365 and other Microsoft product implementation and outsourcing, qq:185426445. Phone 18666943750
To manage Exchange, we first have an understanding of the number and distribution of mailboxes we manage. Open EAC We are really quick to find out how many mailboxes, if the mailbox is more, and there are multiple databases, multiple servers? Will not feel very cumbersome, below I introduce a quick query mailbox PowerShell.
When we manage Exchange in general, we need the Exchange Management Shell, in fact we can connect to exchange directly with PowerShell, so that you can operate on the local computer every time, do not have to connect the server every time.
powershell Management Series (ii) Exchange 2013 uses the PowerShell Remote management feature http:/ /yuntcloud.blog.51cto.com/1173839/1584445
$session =new-pssession- ConfigurationName Microsoft.exchange-connectionuri - authentication basic-credential (get-credential)
650) this.width=650; "width=" 877 "height=" 643 "title=" 1.png "style=" width:712px;height:525px; "alt=" Wkiol1teu4kazntbaak5v7-pb6y897.jpg "src=" Http://s3.51cto.com/wyfs02/M02/59/01/wKioL1TEu4KAzNTBAAK5v7-Pb6Y897.jpg "/>
Step 2, enter the Import-pssession $sessionto indicate successful connection
650) this.width=650; "width=" 877 "height=" 643 "title=" 1.png "style=" width:714px;height:582px; "alt=" Wkiol1tewcbqtzqvaaxpsznscmy835.jpg "src=" Http://s3.51cto.com/wyfs02/M02/59/01/wKioL1TEwCbQTZQvAAXpsznSCMY835.jpg "/>
Step 3, query all the number of mailboxes, the command is as follows (Get-mailbox-resultsize Unlimited). Count
650) this.width=650; "width=" 877 "height=" 514 "title=" 1.png "style=" width:712px;height:453px; "alt=" Wkiol1tevsqrh6bxaaeopcnenhi722.jpg "src=" Http://s3.51cto.com/wyfs02/M00/59/01/wKioL1TEvSqRh6BxAAEopcnENHI722.jpg "/>
Step 4, get-mailbox-resultsize Unlimited | group-object-property:database | select-object name,count
650) this.width=650; "width=" 877 "height=" 642 "title=" 1.png "style=" width:716px;height:568px; "alt=" Wkiol1texuwrfespaafxrvdiqzs551.jpg "src=" Http://s3.51cto.com/wyfs02/M01/59/01/wKioL1TExuWRfeSpAAFxrVDIqZs551.jpg "/>
Step 5, get-mailbox-resultsize Unlimited | group-object-property:servername | select-object name,count
650) this.width=650; "width=" 877 "height=" 643 "title=" 1.png "style=" width:713px;height:578px; "alt=" Wkiom1texouqai05aaftdvekq5g166.jpg "src=" Http://s3.51cto.com/wyfs02/M01/59/04/wKiom1TExouQai05AAFtdVEKq5g166.jpg "/>
This article is from the "Zhou Ping Microsoft Technology Exchange Platform" blog, please be sure to keep this source http://yuntcloud.blog.51cto.com/1173839/1608097
PowerShell Management Series (13) Exchange 2013 Mailbox Count