Solved

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

Posted on 2008-10-20
7
384 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
Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

 
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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Following basic email etiquette rules will help you write a professional email and achieve a good, lasting impression with your contacts.
This article explains how to install and use the NTBackup utility that comes with Windows Server.
To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

823 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