Solved

Exchange 2007 retreiving user logon times, sizes other stats via power shell

Posted on 2008-10-20
7
382 Views
Last Modified: 2012-05-05
Hi,

Wondering how I can retrieve list of values for exchange mailboxes, like last logged on by, last log on time, size of mailbox, etc. Can these items be retrieved via powershell ? Need some way to query all mailboxes at once and export to text file, etc.

Thanks
0
Comment
Question by:netlabz
  • 4
  • 3
7 Comments
 
LVL 18

Expert Comment

by:BSonPosh
Comment Utility
Is this what your looking for?

Get-mailbox | Get-mailboxstatics
0
 
LVL 18

Expert Comment

by:BSonPosh
Comment Utility
If so... then just add out-file NameofFile.txt -enc ASCII at the end

Get-mailbox | Get-mailboxstatics | out-file NameofFile.txt -enc ASCII
0
 

Author Comment

by:netlabz
Comment Utility
mailboxstatistics is decent, but there must be more details that can be retrieved somehow ...
0
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 18

Expert Comment

by:BSonPosh
Comment Utility
Mailboxstatistics has everything you asked for I believe...

I think you are missing the total information due to formatting.

Try this

Get-mailbox | Get-mailboxstatics | fl * -auto | out-file NameofFile.txt -enc ASCII -width 2500
0
 

Author Comment

by:netlabz
Comment Utility
Thanks PS didn't like the 'auto' though ....

[PS] C:\>Get-mailbox | Get-mailboxstatistics | fl * -auto | out-file mailbox-sta
ts.txt -enc ASCII -width 2500
Format-List : A parameter cannot be found that matches parameter name 'auto'.
At line:1 char:49
+ Get-mailbox | Get-mailboxstatistics | fl * -auto  <<<< | out-file mailbox-sta
ts.txt -enc ASCII -width 2500
0
 
LVL 18

Accepted Solution

by:
BSonPosh earned 250 total points
Comment Utility
whoops... I meant ft not fl
fl = format-list
ft = format-Table
0
 

Author Comment

by:netlabz
Comment Utility
Thank You !
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

This article explains in simple steps how to renew expiring Exchange Server Internal Transport Certificate.
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
In this video we show how to create a Shared Mailbox in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Recipients >> Sha…
This video discusses moving either the default database or any database to a new volume.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now