Solved

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

Posted on 2008-10-20
7
389 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

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

Lotus Notes – formerly IBM Notes – is an email client application, while IBM Domino (earlier Lotus Domino) is an email server. The client possesses a set of features that are even more advanced as compared to that of Outlook. Likewise, IBM Domino is…
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…
This video discusses moving either the default database or any database to a new volume.

737 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