Solved

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

Posted on 2008-10-20
7
383 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
ID: 22761321
Is this what your looking for?

Get-mailbox | Get-mailboxstatics
0
 
LVL 18

Expert Comment

by:BSonPosh
ID: 22761332
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
ID: 22761421
mailboxstatistics is decent, but there must be more details that can be retrieved somehow ...
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
LVL 18

Expert Comment

by:BSonPosh
ID: 22761479
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
ID: 22761600
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
ID: 22761609
whoops... I meant ft not fl
fl = format-list
ft = format-Table
0
 

Author Comment

by:netlabz
ID: 22761772
Thank You !
0

Featured Post

Why are Office 365 signatures so complicated?

Trying to setup transport rules for Office 365 email signatures and can’t quite figure it out? Having to test the signature over and over? Make things simple by using Exclaimer Cloud - Signatures for Office 365.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This process describes the steps required to Import and Export data from and to .pst files using Exchange 2010. We can use these steps to export data from a user to a .pst file, import data back to the same or a different user, or even import data t…
A brief introduction to what I consider to be the best editor for PowerShell.
The basic steps you have just learned will be implemented in this video. The basic steps are shown to configure an Exchange DAG in a live working Exchange Server Environment and manage the same (Exchange Server 2010 Software is used in a Windows Ser…
how to add IIS SMTP to handle application/Scanner relays into office 365.

948 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

21 Experts available now in Live!

Get 1:1 Help Now