Solved

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

Posted on 2008-10-20
7
387 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
NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

 
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

In-place Upgrading Dirsync to Azure AD Connect
A list of top three free exchange EDB viewers that helps the user to extract a mailbox from an unmounted .edb file and get a clear preview of all emails & other items with just a single click on mailboxes.
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…
To show how to generate a certificate request 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 Servers >> Certificates…

820 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