Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Active mail 1

Status
Not open for further replies.

JimmyRosa

Technical User
Apr 13, 2012
30
GB
Hi All,


I need to find out how many active Exchange mailboxes their are on our Exchange 2010 server.

I've used the Get-Mailbox -ResultSize unlimited cmd and this has listed all the active mailboxes which is . Is there a way of getting the actual count to so that I don't have to count all the mailboxes in PowerShell result?

Can I be sure that the results also show me only the active mailboxes too?

New to PowerShell... I have checked the Microsoft website....

Cheers
J
 
Code:
$m = Get-Mailbox -ResultSize Unlimited
$m.count

I hope that helps.

Regards,

Mark

No trees were harmed in posting this message, however a significant number of electrons were terribly inconvenienced.

Check out my scripting solutions at
Work SMARTER not HARDER.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top